-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What version are you using?
23.1.4
What did you do?
-
Download wasm 02e9f32323236b7288dc2b3d4652db678dcd876301fb3852d9cfb7cfaf54e0d2
-
Run optimize:
stellar contract optimize \ --wasm 02e9f32323236b7288dc2b3d4652db678dcd876301fb3852d9cfb7cfaf54e0d2.wasm --wasm-out 02e9f32323236b7288dc2b3d4652db678dcd876301fb3852d9cfb7cfaf54e0d2.optimized.wasm
What did you expect to see?
Success and an optimized wasm file.
What did you see instead?
[wasm-validator error in function 36] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.fill
(i32.add
(local.get $2)
(i32.const 64)
)
(i32.const 0)
(i32.const 40)
)
[wasm-validator error in function 36] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.copy
(local.get $2)
(i32.add
(local.get $2)
(i32.const 64)
)
(i32.const 40)
)
[wasm-validator error in function 36] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.fill
(i32.add
(local.get $2)
(i32.const 64)
)
(i32.const 0)
(i32.const 44)
)
[wasm-validator error in function 36] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.copy
(local.get $2)
(i32.add
(local.get $2)
(i32.const 64)
)
(i32.const 44)
)
[wasm-validator error in function 36] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.copy
(local.get $2)
(i32.add
(local.get $2)
(i32.const 64)
)
(i32.const 64)
)
❌ error: optimization error: Failed to validate wasm: error validating input
This error occurs on quite a number of mainnet contracts.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done