mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-27 18:42:46 +00:00
vm: fix Pad functions, state: add debug log for create new account
This commit is contained in:
@@ -347,6 +347,7 @@ func (s *State) ExecTx(tx_ blk.Tx, runCall bool) error {
|
||||
log.Debug(Fmt("Error creating account"))
|
||||
return err
|
||||
}
|
||||
log.Debug(Fmt("Created new account %X", callee.Address.Address()))
|
||||
code = tx.Data
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -17,12 +17,12 @@ func BytesToWord(bz []byte) Word {
|
||||
}
|
||||
|
||||
func LeftPadWord(bz []byte) (word Word) {
|
||||
copy(word[:], bz)
|
||||
copy(word[32-len(bz):], bz)
|
||||
return
|
||||
}
|
||||
|
||||
func RightPadWord(bz []byte) (word Word) {
|
||||
copy(word[32-len(bz):], bz)
|
||||
copy(word[:], bz)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user