Skip to content

Commit a7ef630

Browse files
authored
Merge pull request #91 from wasmx/verifyimports
verifyimports: add two missing imports
2 parents e1995a6 + 601e925 commit a7ef630

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libchisel/src/imports.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ impl<'a> ModulePreset for ImportList<'a> {
137137
"getCodeSize",
138138
FunctionType::new(vec![], Some(ValueType::I32)),
139139
),
140+
ImportType::Function(
141+
"ethereum",
142+
"getExternalCodeSize",
143+
FunctionType::new(vec![ValueType::I32], Some(ValueType::I32)),
144+
),
140145
ImportType::Function(
141146
"ethereum",
142147
"externalCodeCopy",
@@ -150,6 +155,11 @@ impl<'a> ModulePreset for ImportList<'a> {
150155
None,
151156
),
152157
),
158+
ImportType::Function(
159+
"ethereum",
160+
"codeCopy",
161+
FunctionType::new(vec![ValueType::I32, ValueType::I32, ValueType::I32], None),
162+
),
153163
ImportType::Function(
154164
"ethereum",
155165
"getCaller",

0 commit comments

Comments
 (0)