Skip to content

Commit 527ec22

Browse files
authored
feat: eth transaction data export (#391)
1 parent 8c3b646 commit 527ec22

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

crates/anychain-ethereum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "anychain-ethereum"
33
description = "A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain"
4-
version = "0.1.35"
4+
version = "0.1.36"
55
keywords = ["blockchain", "crypto", "ethereum", "wallet"]
66
categories = ["cryptography::cryptocurrencies"]
77

crates/anychain-ethereum/src/transaction/eip1559.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ impl Eip1559TransactionParameters {
4242

4343
Ok(rlp)
4444
}
45+
46+
pub fn get_data(&self) -> Vec<u8> {
47+
self.data.clone()
48+
}
4549
}
4650

4751
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]

crates/anychain-ethereum/src/transaction/eip7702.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ impl Eip7702TransactionParameters {
123123

124124
Ok(rlp)
125125
}
126+
127+
pub fn get_data(&self) -> Vec<u8> {
128+
self.data.clone()
129+
}
126130
}
127131

128132
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]

crates/anychain-ethereum/src/transaction/legacy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ impl EthereumTransactionParameters {
3535

3636
Ok(rlp)
3737
}
38+
39+
pub fn get_data(&self) -> Vec<u8> {
40+
self.data.clone()
41+
}
3842
}
3943

4044
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]

0 commit comments

Comments
 (0)