MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / it_calls_contract_functions

Function it_calls_contract_functions

runtime/src/contract.rs:89–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88 #[test]
89 fn it_calls_contract_functions() {
90 let bytes = include_bytes!("./../../target/wasm32-unknown-unknown/release/erc20_wit.wasm");
91 let address = Account::random().to_string();
92
93 call_function(bytes, "construct", PARAMS_1).unwrap();
94 call_function(bytes, "mint", &params_2(&address)).unwrap();
95 }
96
97 #[test]
98 fn it_parses_string_params() {

Callers

nothing calls this directly

Calls 2

call_functionFunction · 0.85
params_2Function · 0.85

Tested by

no test coverage detected