Skip to content

Commit

Permalink
Fix TypeError: ambiguous function error
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Mar 4, 2024
1 parent 78ab1ed commit edcf276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crosschain-reverse-resolver/test/testReverseResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('Crosschain Reverse Resolver', () => {
)
await provider.send("evm_mine", []);
const i = new ethers.Interface(["function name(bytes32) returns(string)"])
expect(await defaultReverseResolver.name(testAddress)).to.equal(name)
expect(await defaultReverseResolver['name(address)'](testAddress)).to.equal(name)

const defaultcalldata = i.encodeFunctionData("name", [defaultReverseNode])
const defaultResult = await defaultReverseResolver.resolve(encodedDefaultReverseName, defaultcalldata)
Expand Down Expand Up @@ -218,7 +218,7 @@ describe('Crosschain Reverse Resolver', () => {
signature,
)
await provider.send("evm_mine", []);
expect(await defaultReverseResolver.text(testAddress, key)).to.equal(value)
expect(await defaultReverseResolver["text(address,string)"](testAddress, key)).to.equal(value)
const i = new ethers.Interface(["function text(bytes32,string) returns(string)"])

const defaultcalldata = i.encodeFunctionData("text", [defaultReverseNode, key])
Expand Down

0 comments on commit edcf276

Please sign in to comment.