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 c5697b1 commit caa2a4bCopy full SHA for caa2a4b
tools/hardhat-example/test/rpc.js
@@ -36,11 +36,11 @@ describe('RPC', function () {
36
expect(res).to.be.equal('initial_msg');
37
});
38
39
- it('should NOT throw exception upon empty hex response (0x)', async function () {
+ it('should NOT throw exception upon random data', async function () {
40
const provider = new hre.ethers.getDefaultProvider(process.env.RELAY_ENDPOINT);
41
const result = await provider.call({
42
to: '0x00000000000000000000000000000000002e7a5d', // random non-existed address
43
- data: '0x',
+ data: '0xabcdef01', // random data
44
45
expect(result).to.be.equal('0x'); // successfully process empty hex response and throw no exception
46
0 commit comments