Skip to content

Commit

Permalink
avoid invalid account error on create vesting account
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jun 5, 2022
1 parent 620f6a6 commit 5beef59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func ProtoAccount() authtypes.AccountI {
}
}

func (acc EthAccount) GetBaseAccount() *authtypes.BaseAccount {
return acc.BaseAccount
}

// EthAddress returns the account address ethereum format.
func (acc EthAccount) EthAddress() common.Address {
return common.BytesToAddress(acc.GetAddress().Bytes())
Expand Down

0 comments on commit 5beef59

Please sign in to comment.