mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
Support nil pointers for Binary.
If the thing does not already have a typebyte declared, a fake one will be given (0x01). A TypeByte of 0x00 is reserved for nil things. No nil-dogs.
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ func toVMAccount(acc *ac.Account) *vm.Account {
|
||||
func toStateAccount(acc *vm.Account) *ac.Account {
|
||||
pubKey, ok := acc.Other.(ac.PubKey)
|
||||
if !ok {
|
||||
pubKey = ac.PubKeyNil{}
|
||||
pubKey = nil
|
||||
}
|
||||
var storageRoot []byte
|
||||
if acc.StorageRoot.IsZero() {
|
||||
|
||||
Reference in New Issue
Block a user