Add NoncesKeyed variant (#5272)

This commit is contained in:
Hadrien Croubois
2024-10-23 09:16:10 +02:00
committed by GitHub
parent 205f59e9b6
commit 2fa4d103fe
7 changed files with 242 additions and 62 deletions

View File

@ -0,0 +1,17 @@
const { ethers } = require('hardhat');
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
const { shouldBehaveLikeNonces, shouldBehaveLikeNoncesKeyed } = require('./Nonces.behavior');
async function fixture() {
const mock = await ethers.deployContract('$NoncesKeyed');
return { mock };
}
describe('NoncesKeyed', function () {
beforeEach(async function () {
Object.assign(this, await loadFixture(fixture));
});
shouldBehaveLikeNonces();
shouldBehaveLikeNoncesKeyed();
});