Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test reversion with custom errors & maximum view call size #196

Merged
merged 6 commits into from
Oct 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ const config: HardhatUserConfig = {
chainId: 0x5aff,
accounts: process.env.SAPPHIRE_TESTNET_PRIVATE_KEY
? [process.env.SAPPHIRE_TESTNET_PRIVATE_KEY]
: TEST_HDWALLET,
: [],
CedarMist marked this conversation as resolved.
Show resolved Hide resolved
},
'sapphire-mainnet': {
url: 'https://sapphire.oasis.io',
12 changes: 5 additions & 7 deletions contracts/test/semantics.ts
Original file line number Diff line number Diff line change
@@ -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 () => {