all: fix goimports warning (#1903)

This commit is contained in:
wit liu 2026-01-04 19:52:26 +08:00 committed by GitHub
parent ca9e69c924
commit 267222d4a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 27 deletions

View file

@ -31,15 +31,15 @@ import (
) )
const ( const (
HashLength = 32 HashLength = 32
AddressLength = 20 AddressLength = 20
VoteMethod = "0x6dd7d8ea" VoteMethod = "0x6dd7d8ea"
UnvoteMethod = "0x02aa9be2" UnvoteMethod = "0x02aa9be2"
ProposeMethod = "0x01267951" ProposeMethod = "0x01267951"
ResignMethod = "0xae6e43f5" ResignMethod = "0xae6e43f5"
SignMethod = "0xe341eaa4" SignMethod = "0xe341eaa4"
XDCXApplyMethod = "0xc6b32f34" XDCXApplyMethod = "0xc6b32f34"
XDCZApplyMethod = "0xc6b32f34" XDCZApplyMethod = "0xc6b32f34"
) )
var ( var (

View file

@ -334,19 +334,19 @@ func (args *TransactionArgs) ToMessage(b AccountBackend, baseFee *big.Int, skipN
} }
} }
return &core.Message{ return &core.Message{
From: addr, From: addr,
To: args.To, To: args.To,
Value: (*big.Int)(args.Value), Value: (*big.Int)(args.Value),
Nonce: uint64(*args.Nonce), Nonce: uint64(*args.Nonce),
GasLimit: uint64(*args.Gas), GasLimit: uint64(*args.Gas),
GasPrice: gasPrice, GasPrice: gasPrice,
GasFeeCap: gasFeeCap, GasFeeCap: gasFeeCap,
GasTipCap: gasTipCap, GasTipCap: gasTipCap,
Data: args.data(), Data: args.data(),
AccessList: accessList, AccessList: accessList,
SetCodeAuthorizations: args.AuthorizationList, SetCodeAuthorizations: args.AuthorizationList,
SkipNonceChecks: skipNonceCheck, SkipNonceChecks: skipNonceCheck,
SkipFromEOACheck: skipEoACheck, SkipFromEOACheck: skipEoACheck,
} }
} }

View file

@ -58,11 +58,11 @@ var (
nodeDBVersionKey = []byte("version") // Version of the database to flush if changes nodeDBVersionKey = []byte("version") // Version of the database to flush if changes
nodeDBItemPrefix = []byte("n:") // Identifier to prefix node entries with nodeDBItemPrefix = []byte("n:") // Identifier to prefix node entries with
nodeDBDiscoverRoot = ":discover" nodeDBDiscoverRoot = ":discover"
nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping" nodeDBDiscoverPing = nodeDBDiscoverRoot + ":lastping"
nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong" nodeDBDiscoverPong = nodeDBDiscoverRoot + ":lastpong"
nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail" nodeDBDiscoverFindFails = nodeDBDiscoverRoot + ":findfail"
nodeDBTopicRegTickets = ":tickets" nodeDBTopicRegTickets = ":tickets"
) )
// newNodeDB creates a new node database for storing and retrieving infos about // newNodeDB creates a new node database for storing and retrieving infos about