chore(transaction): unify the chainId type in different transaction definitions (#5853)

This commit is contained in:
Siyuan Han
2023-12-25 17:45:53 +08:00
committed by GitHub
parent 065d717b1c
commit 7b0ecceafb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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