string formatting

This commit is contained in:
Ethan Buchman
2017-02-23 18:55:20 -05:00
parent 8a59315d59
commit 157d46ff51
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ func ExecTx(state *State, pgz *types.Plugins, tx types.Tx, isCheckTx bool, evc e
}
*/
return abci.OK
return abci.NewResultOK(types.TxID(chainID, tx), "")
case *types.AppTx:
// Validate input, basic
@@ -238,7 +238,7 @@ func validateInputAdvanced(acc *types.Account, signBytes []byte, in types.TxInpu
}
// Check amount
if !balance.IsGTE(in.Coins) {
return abci.ErrBaseInsufficientFunds.AppendLog(Fmt("balance is %d, tried to send %d", balance, in.Coins))
return abci.ErrBaseInsufficientFunds.AppendLog(Fmt("balance is %v, tried to send %v", balance, in.Coins))
}
// Check signatures
if !acc.PubKey.VerifyBytes(signBytes, in.Signature) {