mirror of https://github.com/status-im/op-geth.git
clef: fix stutter in warning message (#19736)
This commit is contained in:
parent
96f8be36ad
commit
2b303e7d62
|
@ -58,7 +58,7 @@ func (db *Database) ValidateTransaction(selector *string, tx *core.SendTxArgs) (
|
||||||
// No value submitted at least, critically Warn, but don't blow up
|
// No value submitted at least, critically Warn, but don't blow up
|
||||||
messages.Crit("Transaction will create contract with empty code")
|
messages.Crit("Transaction will create contract with empty code")
|
||||||
} else if len(data) < 40 { // arbitrary heuristic limit
|
} else if len(data) < 40 { // arbitrary heuristic limit
|
||||||
messages.Warn(fmt.Sprintf("Transaction will will create contract, but payload is suspiciously small (%d bytes)", len(data)))
|
messages.Warn(fmt.Sprintf("Transaction will create contract, but payload is suspiciously small (%d bytes)", len(data)))
|
||||||
}
|
}
|
||||||
// Method selector should be nil for contract creation
|
// Method selector should be nil for contract creation
|
||||||
if selector != nil {
|
if selector != nil {
|
||||||
|
|
Loading…
Reference in New Issue