SUMMARY
Followup to https://github.com/oasisprotocol/sapphire-paratime/pull/477/files#r1896639760
It seems this solc optimizer snippet is required for any example that uses sapphire-contracts:
|
solidity: { |
|
version: '0.8.20', |
|
settings: { |
|
optimizer: { |
|
enabled: true, |
|
runs: (1 << 32) - 1, |
|
}, |
|
viaIR: true, |
|
}, |
|
}, |
Investigate, why the optimizer setting is there in the first place. Execution speed? Security? Blame says these lines are 3 years old. Then figure out why this snippet is not required by external projects that import sapphire-contracts npm package.
COMPONENT NAME
contracts
SUMMARY
Followup to https://github.com/oasisprotocol/sapphire-paratime/pull/477/files#r1896639760
It seems this solc optimizer snippet is required for any example that uses sapphire-contracts:
sapphire-paratime/contracts/hardhat.config.ts
Lines 47 to 56 in 6acf367
Investigate, why the optimizer setting is there in the first place. Execution speed? Security? Blame says these lines are 3 years old. Then figure out why this snippet is not required by external projects that import sapphire-contracts npm package.
COMPONENT NAME
contracts