Skip to content
Snippets Groups Projects
Commit f0dbcf54 authored by Sergei Pepyakin's avatar Sergei Pepyakin Committed by Gav Wood
Browse files

Verify that contracts cannot use float operations (#1504)

parent b57486c7
No related merge requests found
......@@ -342,6 +342,22 @@ mod tests {
};
}
prepare_test!(no_floats,
r#"
(module
(func (export "call")
(drop
(f32.add
(f32.const 0)
(f32.const 1)
)
)
)
(func (export "deploy"))
)"#,
Err("gas instrumentation failed")
);
mod memories {
use super::*;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment