Skip to content

contracts: What's with the solc optimizer settings? #479

@matevz

Description

@matevz
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    contractsPull requests that update sapphire-contracts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions