mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(transaction): unify the chainId type in different transaction definitions (#5853)
This commit is contained in:
@ -10,7 +10,7 @@ use std::mem;
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
|
||||
pub struct TxEip1559 {
|
||||
/// Added as EIP-pub 155: Simple replay attack protection
|
||||
pub chain_id: u64,
|
||||
pub chain_id: ChainId,
|
||||
/// A scalar value equal to the number of transactions sent by the sender; formally Tn.
|
||||
pub nonce: u64,
|
||||
/// A scalar value equal to the maximum
|
||||
|
||||
@ -24,7 +24,7 @@ use std::ops::Deref;
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
|
||||
pub struct TxEip4844 {
|
||||
/// Added as EIP-pub 155: Simple replay attack protection
|
||||
pub chain_id: u64,
|
||||
pub chain_id: ChainId,
|
||||
/// A scalar value equal to the number of transactions sent by the sender; formally Tn.
|
||||
pub nonce: u64,
|
||||
/// A scalar value equal to the maximum
|
||||
|
||||
Reference in New Issue
Block a user