move perms to vm.Account

This commit is contained in:
Ethan Buchman
2015-05-16 00:48:04 -04:00
committed by Jae Kwon
parent c6c0701b69
commit 94f21ad012
10 changed files with 55 additions and 304 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
ptypes "github.com/tendermint/tendermint/permission/types"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
)
@ -22,7 +23,7 @@ func GetAccount(address []byte) (*acm.Account, error) {
Balance: 0,
Code: nil,
StorageRoot: nil,
Permissions: cache.GetAccount(acm.GlobalPermissionsAddress).Permissions,
Permissions: cache.GetAccount(ptypes.GlobalPermissionsAddress).Permissions,
}
}
return account, nil