mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add unnecessary_struct_initialization and string_lit_as_bytes (#8551)
This commit is contained in:
@ -148,7 +148,7 @@ impl Discovery {
|
||||
pub(crate) fn update_fork_id(&self, fork_id: ForkId) {
|
||||
if let Some(discv4) = &self.discv4 {
|
||||
// use forward-compatible forkid entry
|
||||
discv4.set_eip868_rlp("eth".as_bytes().to_vec(), EnrForkIdEntry::from(fork_id))
|
||||
discv4.set_eip868_rlp(b"eth".to_vec(), EnrForkIdEntry::from(fork_id))
|
||||
}
|
||||
// todo: update discv5 enr
|
||||
}
|
||||
|
||||
@ -533,9 +533,7 @@ mod tests {
|
||||
transactions.push(transaction);
|
||||
} else {
|
||||
let transaction = TransactionSigned {
|
||||
transaction: reth_primitives::Transaction::Legacy(
|
||||
reth_primitives::TxLegacy { ..Default::default() },
|
||||
),
|
||||
transaction: reth_primitives::Transaction::Legacy(Default::default()),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user