Skip to content

Commit

Permalink
contracts: semantics - removed hardhat if condition & testing artifac…
Browse files Browse the repository at this point in the history
…t from hardhat.config.ts
  • Loading branch information
CedarMist committed Oct 30, 2023
1 parent 419d64d commit 45f15cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const config: HardhatUserConfig = {
chainId: 0x5aff,
accounts: process.env.SAPPHIRE_TESTNET_PRIVATE_KEY
? [process.env.SAPPHIRE_TESTNET_PRIVATE_KEY]
: TEST_HDWALLET,
: [],
},
'sapphire-mainnet': {
url: 'https://sapphire.oasis.io',
Expand Down
12 changes: 5 additions & 7 deletions contracts/test/semantics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ describe('EVM Semantics', () => {
});

it('eth_call maximum return length vs gas limit', async () => {
if (chainId != 31337) {
const i = 1787872;
const respHex = await c.testViewLength(i);
const respBytes = ethers.utils.arrayify(respHex);
expect(respBytes.length).eq(i);
expect(c.testViewLength(i + 1)).reverted;
}
const i = 1787872;
const respHex = await c.testViewLength(i);
const respBytes = ethers.utils.arrayify(respHex);
expect(respBytes.length).eq(i);
expect(c.testViewLength(i + 1)).reverted;
});

it('Error string in view call', async () => {
Expand Down

0 comments on commit 45f15cd

Please sign in to comment.