You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, what is principle of cross contract call in wasmi?, like this contract, when i call "fn inc(&mut self)", this call opcode is from which "ReturnCallIndirect", "ReturnCall", "ReturnCallIndirect", "CallInternal", "Call", "CallIndirect" ? and by the way the wasmi principle of cross contract call is the same with evm? Thanks
#[ink::contract]
pub mod caller {
use dyn_traits::Increment;
/// The caller of the incrementer smart contract.
#[ink(storage)]
pub struct Caller {
/// Here we accept a type which implements the `Incrementer` ink! trait.
incrementer: ink::contract_ref!(Increment),
}
impl Caller {
/// Creates a new caller smart contract around the `incrementer` account id.
#[ink(constructor)]
pub fn new(incrementer: AccountId) -> Self {
Self {
incrementer: incrementer.into(),
}
}
}
impl Increment for Caller {
#[ink(message)]
fn inc(&mut self) {
self.incrementer.inc()
}
#[ink(message)]
fn get(&self) -> u64 {
self.incrementer.get()
}
}
}
The text was updated successfully, but these errors were encountered:
Hi, what is principle of cross contract call in wasmi?, like this contract, when i call "fn inc(&mut self)", this call opcode is from which "ReturnCallIndirect", "ReturnCall", "ReturnCallIndirect", "CallInternal", "Call", "CallIndirect" ? and by the way the wasmi principle of cross contract call is the same with evm? Thanks
The text was updated successfully, but these errors were encountered: