mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 06:01:21 +00:00
vm: fix Pad functions, state: add debug log for create new account
This commit is contained in:
parent
f2d5aba2a9
commit
e6da48880b
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user