We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a4eade commit be3e760Copy full SHA for be3e760
test/utils/structs/EnumerableMap.behavior.js
@@ -172,8 +172,12 @@ function shouldBehaveLikeMap() {
172
173
it('missing value', async function () {
174
await expect(this.methods.get(this.keyB))
175
- .to.be.revertedWithCustomError(this.mock, 'EnumerableMapNonexistentKey')
176
- .withArgs(ethers.AbiCoder.defaultAbiCoder().encode([this.keyType], [this.keyB]));
+ .to.be.revertedWithCustomError(this.mock, this.error ?? 'EnumerableMapNonexistentKey')
+ .withArgs(
177
+ this.key?.memory || this.value?.memory
178
+ ? this.keyB
179
+ : ethers.AbiCoder.defaultAbiCoder().encode([this.keyType], [this.keyB]),
180
+ );
181
});
182
183
0 commit comments