/// Introduce a new contract to the test, that we try to open from the file ~/tests/wasm/$pack
Introduce a new contract to the test, that we try to open from the file ~/tests/wasm/$pack
Introduce a new contract to the test that we try to open from the file ~ / tests / wasm / $pack
pub fn deploy_contract(&mut self, pack: &str) {
            let base_code = Code::from(pack);
            let base_args = runtime_args! {};
            let base_session = SessionBuilder::new(base_code, base_args)
                .with_address(self.account_addr)
                .with_authorization_keys(&[self.account_addr])
                .build();
            self.context.run(base_session);
            println!("deployed {}", pack);
        }
pub fn deploy_contract ( & mut self , pack : & str ) { let base_code = Code :: from ( pack ) ; let base_args = runtime_args ! { } ; let base_session = SessionBuilder :: new ( base_code , base_args ) . with_address ( self . account_addr ) . with_authorization_keys ( & [ self . account_addr ] ) . build ( ) ; self . context . run ( base_session ) ; println ! ( " " pack ) ; }
Introduce a new contract to the test, that we try to open from the file ~/tests/wasm/$pack
Introduce a new contract to the test that we try to open from the file ~ / tests / wasm / $pack
&mut self
pack
&str