Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am iorveth on github.
  • I am iorveth (https://keybase.io/iorveth) on keybase.
  • I have a public key ASAtv4xZ5pnEXitFlsaOh7gPDKQF8uwirCZFur0LJp9Jhgo

To claim this, I am signing this object:

#[ink(message)]
fn continue_execution(&self, e_ind: u128) -> AccountId {
let selector = Selector::from(GET_INTERPRETER);
CallParams::<EnvTypes, AccountId>::eval(self.get_cflow_inst(), selector)
.fire()
.unwrap_or(AccountId::from([0x0; 32]))
}
#[ink(message)]
fn new_instance(&self) -> AccountId {
let total_balance = self.env().balance();
let selector = Selector::from(CONSTRUCTOR);
InstantiateParams::<EnvTypes, AccountId>::build(selector)
.endowment(total_balance / 5)
.using_code(*self.idata_hash)
.instantiate()
.unwrap_or(AccountId::from([0x0; 32]))
}