diff --git a/common/mock-contracts/mock-esdt-safe/wasm/src/lib.rs b/common/mock-contracts/mock-esdt-safe/wasm/src/lib.rs index 7c9a8414..341c5ffb 100644 --- a/common/mock-contracts/mock-esdt-safe/wasm/src/lib.rs +++ b/common/mock-contracts/mock-esdt-safe/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 1 +// Endpoints: 3 // Async Callback (empty): 1 -// Total number of exported functions: 4 +// Total number of exported functions: 6 #![no_std] @@ -21,6 +21,8 @@ multiversx_sc_wasm_adapter::endpoints! { init => init upgrade => upgrade createTransaction => create_transaction + withdrawTransactionFees => withdraw_transaction_fees + withdrawRefundFeesForEthereum => withdraw_refund_fees_for_ethereum ) } diff --git a/multisig/wasm/Cargo.lock b/multisig/wasm/Cargo.lock index 5af96c1d..9993d89a 100644 --- a/multisig/wasm/Cargo.lock +++ b/multisig/wasm/Cargo.lock @@ -265,6 +265,9 @@ dependencies = [ "eth-address", "fee-estimator-module", "max-bridged-amount-module", + "mock-esdt-safe", + "mock-multi-transfer-esdt", + "mock-price-aggregator", "multi-transfer-esdt", "multiversx-price-aggregator-sc", "multiversx-sc", diff --git a/test-caller/src/test-caller.rs b/test-caller/src/test-caller.rs index 2c7fcf17..da479c44 100644 --- a/test-caller/src/test-caller.rs +++ b/test-caller/src/test-caller.rs @@ -10,6 +10,7 @@ pub struct CalledData { pub size: u64, pub address: ManagedAddress, pub token_identifier: TokenIdentifier, + pub buff: ManagedBuffer, } #[multiversx_sc::contract] @@ -41,6 +42,26 @@ pub trait TestCallerContract { size, address, token_identifier, + buff: ManagedBuffer::new(), + }; + + _ = self.called_data_params().push(&data); + } + + #[payable("*")] + #[view(callPayableWithBuff)] + fn call_payable_with_buff( + &self, + buff: ManagedBuffer, + ) { + let payment = self.call_value().single_esdt(); + let token_identifier = payment.token_identifier; + + let data = CalledData{ + size: 0, + address: ManagedAddress::zero(), + token_identifier, + buff, }; _ = self.called_data_params().push(&data); diff --git a/test-caller/wasm/src/lib.rs b/test-caller/wasm/src/lib.rs index 43f3fc05..4d9f1abe 100644 --- a/test-caller/wasm/src/lib.rs +++ b/test-caller/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 4 +// Endpoints: 5 // Async Callback (empty): 1 -// Total number of exported functions: 7 +// Total number of exported functions: 8 #![no_std] @@ -23,6 +23,7 @@ multiversx_sc_wasm_adapter::endpoints! { callPayable => call_payable callNonPayable => call_non_payable callPayableWithParams => call_payable_with_params + callPayableWithBuff => call_payable_with_buff getCalledDataParams => get_called_data_params ) }