mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 15:07:59 +00:00
Change wabt to wat (#7050)
This commit is contained in:
@@ -41,7 +41,7 @@ sp-application-crypto = { version = "2.0.0-rc6", path = "../../../primitives/app
|
||||
sp-runtime = { version = "2.0.0-rc6", path = "../../../primitives/runtime" }
|
||||
sp-externalities = { version = "0.8.0-rc6", path = "../../../primitives/externalities" }
|
||||
substrate-test-client = { version = "2.0.0-rc6", path = "../../../test-utils/client" }
|
||||
wabt = "0.9.1"
|
||||
wat = "1.0"
|
||||
|
||||
[features]
|
||||
wasmtime = [
|
||||
|
||||
@@ -36,7 +36,7 @@ use node_runtime::{
|
||||
constants::currency::*,
|
||||
};
|
||||
use node_primitives::{Balance, Hash};
|
||||
use wabt;
|
||||
use wat;
|
||||
use node_testing::keyring::*;
|
||||
|
||||
pub mod common;
|
||||
@@ -580,7 +580,7 @@ const CODE_TRANSFER: &str = r#"
|
||||
|
||||
#[test]
|
||||
fn deploying_wasm_contract_should_work() {
|
||||
let transfer_code = wabt::wat2wasm(CODE_TRANSFER).unwrap();
|
||||
let transfer_code = wat::parse_str(CODE_TRANSFER).unwrap();
|
||||
let transfer_ch = <Runtime as frame_system::Trait>::Hashing::hash(&transfer_code);
|
||||
|
||||
let addr = <Runtime as pallet_contracts::Trait>::DetermineContractAddress::contract_address_for(
|
||||
|
||||
Reference in New Issue
Block a user