mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-30 07:29:52 +00:00
remove superfluous byte swap in linkersymbol builtin translation (#455)
- Remove the superfluous byte swap in the `linkersymbol` builtin translation. - Support testing the `linkersymbol` builtin translation in the runner specs. --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
2d85ca9755
commit
289af875db
12 files changed
+498
-345
No files matched your search
@@ -17,7 +17,7 @@ impl Contract {
|
||||
pub fn build(calldata: Vec<u8>, name: &'static str, code: &str) -> Self {
|
||||
Self {
|
||||
name,
|
||||
evm_runtime: compile_evm_bin_runtime(name, code),
|
||||
evm_runtime: compile_evm_bin_runtime(name, code, Default::default()),
|
||||
pvm_runtime: compile_blob(name, code),
|
||||
calldata,
|
||||
yul: compile_to_yul(name, code, true),
|
||||
@@ -27,8 +27,14 @@ impl Contract {
|
||||
pub fn build_size_opt(calldata: Vec<u8>, name: &'static str, code: &str) -> Self {
|
||||
Self {
|
||||
name,
|
||||
evm_runtime: compile_evm_bin_runtime(name, code),
|
||||
pvm_runtime: compile_blob_with_options(name, code, true, OptimizerSettings::size()),
|
||||
evm_runtime: compile_evm_bin_runtime(name, code, Default::default()),
|
||||
pvm_runtime: compile_blob_with_options(
|
||||
name,
|
||||
code,
|
||||
true,
|
||||
OptimizerSettings::size(),
|
||||
Default::default(),
|
||||
),
|
||||
calldata,
|
||||
yul: compile_to_yul(name, code, true),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user