Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Feb 18, 2025
1 parent 1e532fb commit d983310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Contains all the PRs that improved the code without changing the behaviors.
- Update outdated dependencies
- fixed old expirations are not removed
- fixed not delegate being used in msg open contract
- fixed the recipient’s IsTransferable field is overwritten to false in MsgClaimThorchain

# v1.0.5-Prerelease
### Added
Expand Down
3 changes: 3 additions & 0 deletions x/claim/keeper/msg_server_claim_thorchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ func TestClaimThorchainTestnetAddress(t *testing.T) {
AmountClaim: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
AmountVote: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
AmountDelegate: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
IsTransferable: false,
}
claimRecordTo := types.ClaimRecord{
Chain: types.ARKEO,
Address: toAddr.String(),
AmountClaim: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
AmountVote: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
AmountDelegate: sdk.NewInt64Coin(types.DefaultClaimDenom, 100),
IsTransferable: true,
}
err = keepers.ClaimKeeper.SetClaimRecord(sdkCtx, claimRecordFrom)
require.NoError(t, err)
Expand Down Expand Up @@ -70,6 +72,7 @@ func TestClaimThorchainTestnetAddress(t *testing.T) {
claimRecordTo, err = keepers.ClaimKeeper.GetClaimRecord(sdkCtx, toAddr.String(), types.ARKEO)
require.NoError(t, err)
require.True(t, !claimRecordTo.IsEmpty())
require.Equal(t, claimRecordTo.IsTransferable, true)

require.Equal(t, claimRecordTo.Address, toAddr.String())
require.Equal(t, claimRecordTo.Chain, types.ARKEO)
Expand Down

0 comments on commit d983310

Please sign in to comment.