mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 05:11:02 +00:00
Verify that contracts cannot use float operations (#1504)
This commit is contained in:
committed by
Gav Wood
parent
b57486c74f
commit
f0dbcf5401
@@ -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 {
|
mod memories {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user