Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 20, 2024
1 parent 96f1397 commit 303d243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zetaclient/testdata/cctx/chain_1_cctx_7260.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var chain_1_cctx_7260 = &crosschaintypes.CrossChainTx{
GasLimit: 21000,
GasPrice: "236882693686",
Hash: "0xd13b593eb62b5500a00e288cc2fb2c8af1339025c0e6bc6183b8bef2ebbed0d3",
BallotIndex: "0xca4ca249ce29a6305ca88eec8957a6b74e74df3a3bdfe7cd14d7e951b7c820c8",
BallotIndex: "0x96e2f6f6956a7617cce6385e42169621254172ec4ddb9d3b2d8740263861a456",
ObservedExternalHeight: 19363323,
GasUsed: 21000,
EffectiveGasPrice: sdkmath.NewInt(236882693686),
Expand Down
4 changes: 2 additions & 2 deletions zetaclient/zetacore/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func TestZetacore_PostVoteOutbound(t *testing.T) {

expectedOutput := observertypes.QueryHasVotedResponse{HasVoted: false}
input := observertypes.QueryHasVotedRequest{
BallotIdentifier: "0x6facd1e8a2008cd0acd7784628ff1ac326406f3bb355ea514bf290c6ce6f8355",
BallotIdentifier: "0xc1ebc3b76ebcc7ff9a9e543062c31b9f9445506e4924df858460bf2926be1a25",
VoterAddress: address.String(),
}
method := "/zetachain.zetacore.observer.Query/HasVoted"
Expand Down Expand Up @@ -480,7 +480,7 @@ func TestZetacore_PostVoteOutbound(t *testing.T) {
coin.CoinType_Gas)
require.NoError(t, err)
require.Equal(t, sampleHash, hash)
require.Equal(t, "0x6facd1e8a2008cd0acd7784628ff1ac326406f3bb355ea514bf290c6ce6f8355", ballot)
require.Equal(t, "0xc1ebc3b76ebcc7ff9a9e543062c31b9f9445506e4924df858460bf2926be1a25", ballot)
}

func TestZetacore_MonitorVoteOutboundResult(t *testing.T) {
Expand Down

0 comments on commit 303d243

Please sign in to comment.