Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Nov 28, 2023
1 parent 0db7904 commit aec03fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/contracts/test/TestOffchainResolver.js
Expand Up @@ -78,9 +78,10 @@ describe('OffchainResolver', function (accounts) {
it('resolves an address given a valid signature', async () => {
// Generate the response data
const response = defaultAbiCoder.encode(['bytes', 'uint64', 'bytes'], [resultData, expires, hexConcat([sig.r, sig._vs])]);
const encodedData = ethers.utils.defaultAbiCoder.encode(['bytes', 'address'], [callData, resolver.address]);

// Call the function with the request and response
const [result] = iface.decodeFunctionResult("addr", await resolver.resolveWithProof(response, callData));
const [result] = iface.decodeFunctionResult("addr", await resolver.resolveWithProof(response, encodedData));
expect(result).to.equal(TEST_ADDRESS);
});

Expand Down

0 comments on commit aec03fc

Please sign in to comment.