aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-07-23 18:06:31 +0800
committerGitHub <noreply@github.com>2019-07-23 18:06:31 +0800
commit4f56790efc0da36e3bf20e7194f864f84b72c7e6 (patch)
treef8c9193726505c25b0b791b4e60413385cdb8336
parent78ab411aacfb11e00e1c7466aaa20843016429f3 (diff)
downloadgo-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar.gz
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar.bz2
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar.lz
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar.xz
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.tar.zst
go-tangerine-4f56790efc0da36e3bf20e7194f864f84b72c7e6.zip
signer/fourbytes: fix up error messages (#19877)
-rw-r--r--signer/fourbyte/validation.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/signer/fourbyte/validation.go b/signer/fourbyte/validation.go
index add7c6460..4d042d240 100644
--- a/signer/fourbyte/validation.go
+++ b/signer/fourbyte/validation.go
@@ -53,16 +53,16 @@ func (db *Database) ValidateTransaction(selector *string, tx *core.SendTxArgs) (
if len(data) == 0 {
// Prevent sending ether into black hole (show stopper)
if tx.Value.ToInt().Cmp(big.NewInt(0)) > 0 {
- return nil, errors.New("tx will create contract with value but empty code")
+ return nil, errors.New("transaction will create a contract with value but empty code")
}
// 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 a contract with empty code")
} else if len(data) < 40 { // arbitrary heuristic limit
- messages.Warn(fmt.Sprintf("Transaction will create contract, but payload is suspiciously small (%d bytes)", len(data)))
+ messages.Warn(fmt.Sprintf("Transaction will create a contract, but the payload is suspiciously small (%d bytes)", len(data)))
}
// Method selector should be nil for contract creation
if selector != nil {
- messages.Warn("Transaction will create contract, but method selector supplied, indicating intent to call a method")
+ messages.Warn("Transaction will create a contract, but method selector supplied, indicating an intent to call a method")
}
return messages, nil
}