{ sc_panic!("Async call failed"); } } } } Contract B #[elrond_wasm::contract] pub trait ContractB { #[init] fn init(&self) {} #[endpoint(doNothing)] fn do_nothing( &self ) {} } We see on this transaction that the async call returned an error. Would you have an idea why? In particular, no matter the gas limit I provide, it is entirely consumed. Is it always the case that a callback entirely consumes the provided gas? - ElrondDevelopers"/> { sc_panic!("Async call failed"); } } } } Contract B #[elrond_wasm::contract] pub trait ContractB { #[init] fn init(&self) {} #[endpoint(doNothing)] fn do_nothing( &self ) {} } We see on this transaction that the async call returned an error. Would you have an idea why? In particular, no matter the gas limit I provide, it is entirely consumed. Is it always the case that a callback entirely consumes the provided gas? - ElrondDevelopers"/> { sc_panic!("Async call failed"); } } } } Contract B #[elrond_wasm::contract] pub trait ContractB { #[init] fn init(&self) {} #[endpoint(doNothing)] fn do_nothing( &self ) {} } We see on this transaction that the async call returned an error. Would you have an idea why? In particular, no matter the gas limit I provide, it is entirely consumed. Is it always the case that a callback entirely consumes the provided gas? - ElrondDevelopers"/> { sc_panic!("Async call failed"); } } } } Contract B #[elrond_wasm::contract] pub trait ContractB { #[init] fn init(&self) {} #[endpoint(doNothing)] fn do_nothing( &self ) {} } We see on this transaction that the async call returned an error. Would you have an idea why? In particular, no matter the gas limit I provide, it is entirely consumed. Is it always the case that a callback entirely consumes the provided gas? - ElrondDevelopers"/>

Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Hello guys!! I have a contract A (shard 1) calling a method of contract B (shard 0) that does nothing, and then checks in a callback whether the ManagedAsyncCallResult was successful. Contract A #[elrond_wasm::contract] pub trait ContractA { #[init] fn init(&self) {} #[endpoint(askNothing)] fn ask_nothing(&self) { let sender = self.sender_address().get(); self.sender_proxy(sender) .do_nothing() .async_call() .with_callback( self.callbacks() .empty_callback(), ) .call_and_exit() } #[callback] fn empty_callback( &self, #[call_result] result: ManagedAsyncCallResult<()> ) { match result { ManagedAsyncCallResult::Ok(_) => { sc_panic!("Async call succeeds"); } ManagedAsyncCallResult::Err(_) => { sc_panic!("Async call failed"); } } } } Contract B #[elrond_wasm::contract] pub trait ContractB { #[init] fn init(&self) {} #[endpoint(doNothing)] fn do_nothing( &self ) {} } We see on this transaction that the async call returned an error. Would you have an idea why? In particular, no matter the gas limit I provide, it is entirely consumed. Is it always the case that a callback entirely consumes the provided gas?