Skip to content

Commit

Permalink
Merge pull request #2534 from dusk-network/mocello/2525_memo_tx
Browse files Browse the repository at this point in the history
rusk-wallet: Add transfer values to memo transaction
  • Loading branch information
moCello authored Sep 30, 2024
2 parents 9be8bf5 + 605a0b9 commit a4fbe69
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 164 deletions.
12 changes: 12 additions & 0 deletions execution-core/src/transfer/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ impl From<ContractDeploy> for TransactionData {
}
}

impl From<Vec<u8>> for TransactionData {
fn from(d: Vec<u8>) -> Self {
TransactionData::Memo(d)
}
}

impl From<String> for TransactionData {
fn from(d: String) -> Self {
TransactionData::Memo(d.as_bytes().to_vec())
}
}

/// Data for performing a contract deployment
#[derive(Debug, Clone, PartialEq, Eq, Archive, Serialize, Deserialize)]
#[archive_attr(derive(CheckBytes))]
Expand Down
Loading

0 comments on commit a4fbe69

Please sign in to comment.