mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-24 11:29:55 +00:00
Introduce tests which demonstrate bad wasm compiler.
This commit is contained in:
1 parent
bbac6f8da1
commit
0b138b0fd5
12 files changed
+96
-30
No files matched your search
@@ -84,7 +84,6 @@ pub fn execute_block(mut block: Block) {
|
||||
|
||||
/// Execute a given transaction.
|
||||
pub fn execute_transaction(utx: &UncheckedTransaction) {
|
||||
println!("Executing...");
|
||||
// Verify the signature is good.
|
||||
assert!(utx.ed25519_verify(), "All transactions should be properly signed");
|
||||
|
||||
@@ -98,8 +97,6 @@ pub fn execute_transaction(utx: &UncheckedTransaction) {
|
||||
// increment nonce in storage
|
||||
(expected_nonce + 1).store(&nonce_key);
|
||||
|
||||
println!("Dispatching...");
|
||||
|
||||
// decode parameters and dispatch
|
||||
tx.function.dispatch(&tx.signed, &tx.input_data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user