1
#[ink(message)]
pub fn get_flip2_buill_call(&mut self, token_contract_address: AccountId, account_id: AccountId )-> i32 {
    let my_return_value = build_call::<DefaultEnvironment>()
        .call(token_contract_address)
        .gas_limit(0)
        .transferred_value(0)
        .exec_input(
            ExecutionInput::new(Selector::new(ink::selector_bytes!("flip"))).push_arg(1i32)
        )
        .returns::<i32>()
        .invoke();

   my_return_value
}

enter image description here

1
  • The original post is completely a mess.
    – AurevoirXavier
    Oct 8, 2023 at 10:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.