mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
21 lines
516 B
Go
21 lines
516 B
Go
|
package e2e_test
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
)
|
||
|
|
||
|
func (suite *IntegrationTestSuite) TestGrpcClientUtil_Account() {
|
||
|
// ARRANGE
|
||
|
// setup kava account
|
||
|
kavaAcc := suite.Kava.NewFundedAccount("account-test", sdk.NewCoins(ukava(1e5)))
|
||
|
|
||
|
// ACT
|
||
|
rsp, err := suite.Kava.Grpc.BaseAccount(kavaAcc.SdkAddress.String())
|
||
|
|
||
|
// ASSERT
|
||
|
suite.Require().NoError(err)
|
||
|
suite.Equal(kavaAcc.SdkAddress.String(), rsp.Address)
|
||
|
suite.Greater(rsp.AccountNumber, uint64(1))
|
||
|
suite.Equal(uint64(0), rsp.Sequence)
|
||
|
}
|