-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into release
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Relaxed Bytecode Limits Rules | ||
=================== | ||
|
||
The provided rule disables the enforcement of the code size limit introduced in EIP-170 during contract deployment. | ||
That enables the deployment of larger test contracts containing auxiliary functions for verification and testing. | ||
In addition, it enhances compatibility with Foundry, which also does not enforce the code size limit. | ||
|
||
```k | ||
requires "foundry.md" | ||
module NO-CODE-SIZE-CHECKS | ||
imports EVM | ||
imports FOUNDRY | ||
rule <k> #mkCodeDeposit ACCT | ||
=> Gcodedeposit < SCHED > *Int lengthBytes(OUT) ~> #deductGas | ||
~> #finishCodeDeposit ACCT OUT | ||
... | ||
</k> | ||
<schedule> SCHED </schedule> | ||
<output> OUT => .Bytes </output> | ||
requires #isValidCode(OUT, SCHED) | ||
[priority(30)] | ||
endmodule | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters