mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
PermFlag rename; Make Permission fields value (nonpointer) fields; Permissions & Snatives on by default; Remove dead code
This commit is contained in:
+2
-2
@@ -165,7 +165,7 @@ func toVMAccount(acc *ac.Account) *vm.Account {
|
||||
Code: acc.Code, // This is crazy.
|
||||
Nonce: int64(acc.Sequence),
|
||||
StorageRoot: LeftPadWord256(acc.StorageRoot),
|
||||
Permissions: acc.Permissions.Copy(),
|
||||
Permissions: acc.Permissions, // Copy
|
||||
Other: acc.PubKey,
|
||||
}
|
||||
}
|
||||
@@ -190,7 +190,7 @@ func toStateAccount(acc *vm.Account) *ac.Account {
|
||||
Code: acc.Code,
|
||||
Sequence: int(acc.Nonce),
|
||||
StorageRoot: storageRoot,
|
||||
Permissions: acc.Permissions,
|
||||
Permissions: acc.Permissions, // Copy
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user