Skip to content

Commit caa2a4b

Browse files
committed
fix hardhat
Signed-off-by: Logan Nguyen <[email protected]>
1 parent c5697b1 commit caa2a4b

File tree

1 file changed

+2
-2
lines changed
  • tools/hardhat-example/test

1 file changed

+2
-2
lines changed

tools/hardhat-example/test/rpc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ describe('RPC', function () {
3636
expect(res).to.be.equal('initial_msg');
3737
});
3838

39-
it('should NOT throw exception upon empty hex response (0x)', async function () {
39+
it('should NOT throw exception upon random data', async function () {
4040
const provider = new hre.ethers.getDefaultProvider(process.env.RELAY_ENDPOINT);
4141
const result = await provider.call({
4242
to: '0x00000000000000000000000000000000002e7a5d', // random non-existed address
43-
data: '0x',
43+
data: '0xabcdef01', // random data
4444
});
4545
expect(result).to.be.equal('0x'); // successfully process empty hex response and throw no exception
4646
});

0 commit comments

Comments
 (0)