diff --git a/.github/workflows/ruskwallet_ci.yml b/.github/workflows/ruskwallet_ci.yml index eb6cc20cc5..df9dd55def 100644 --- a/.github/workflows/ruskwallet_ci.yml +++ b/.github/workflows/ruskwallet_ci.yml @@ -25,6 +25,8 @@ jobs: with: filters: | run-ci: + - 'wallet-core/**' + - 'execution-core/**' - 'rusk-wallet/**' - '.github/workflows/ruskwallet_ci.yml' fmt: diff --git a/rusk-wallet/src/error.rs b/rusk-wallet/src/error.rs index 430a6f20ef..a5ee8670c7 100644 --- a/rusk-wallet/src/error.rs +++ b/rusk-wallet/src/error.rs @@ -116,6 +116,9 @@ pub enum Error { /// Prover errors from execution-core #[error("Prover Error")] ProverError(String), + /// Memo provided is too large + #[error("Memo too large {0}")] + MemoTooLarge(usize), } impl From for Error { @@ -147,6 +150,7 @@ impl From for Error { Self::Bytes(dusk_bytes::Error::InvalidChar { ch, index }) } Rkyv(_) => Self::Rkyv, + MemoTooLarge(m) => Self::MemoTooLarge(m), } } } diff --git a/rusk-wallet/src/wallet.rs b/rusk-wallet/src/wallet.rs index 4a2c6756a7..f68f4edcbc 100644 --- a/rusk-wallet/src/wallet.rs +++ b/rusk-wallet/src/wallet.rs @@ -35,7 +35,7 @@ use wallet_core::{ use execution_core::{ signatures::bls::{PublicKey as BlsPublicKey, SecretKey as BlsSecretKey}, transfer::{ - contract_exec::{ContractCall, ContractExec}, + data::{ContractCall, TransactionData}, Transaction, }, }; @@ -401,7 +401,7 @@ impl Wallet { sender: &Address, reciever: &Address, deposit: Dusk, - exec: Option>, + data: Option>, gas: Gas, ) -> Result { // make sure we own the sender address @@ -445,7 +445,7 @@ impl Wallet { gas.limit, gas.price, chain_id, - exec, + data, )?; let tx = state.prove_and_propagate(tx);