mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
Exchange pallet benchmarks (#158)
* exchange benchmarks: framework * updated comment about tx size Co-authored-by: Tomasz Drwięga <tomasz@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
ebdfffc4b1
commit
00bd13f8cd
@@ -117,9 +117,9 @@ pub struct UnsignedTransaction {
|
||||
pub gas: U256,
|
||||
/// Transaction destination address. None if it is contract creation transaction.
|
||||
pub to: Option<Address>,
|
||||
/// Transaction value.
|
||||
/// Value.
|
||||
pub value: U256,
|
||||
/// Transaction payload.
|
||||
/// Associated data.
|
||||
pub payload: Bytes,
|
||||
}
|
||||
|
||||
@@ -432,7 +432,7 @@ impl std::fmt::Debug for Bloom {
|
||||
}
|
||||
|
||||
/// Decode Ethereum transaction.
|
||||
pub fn transaction_decode(raw_tx: &[u8]) -> Result<Transaction, rlp::DecoderError> {
|
||||
pub fn transaction_decode(raw_tx: &[u8]) -> Result<Transaction, DecoderError> {
|
||||
// parse transaction fields
|
||||
let unsigned = UnsignedTransaction::decode(raw_tx)?;
|
||||
let tx_rlp = Rlp::new(raw_tx);
|
||||
|
||||
Reference in New Issue
Block a user