Skip to content

Commit

Permalink
use a fixed address prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed May 20, 2024
1 parent 2a25cf1 commit 64bbcb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/chains/airdrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func Airdrop(stakingClient stakingtypes.QueryClient, configPath, blockHeight str
}
for address, amount := range airdropMap {
// Skip addresses that receive less than 1 token
if amount == 0 {
if amount <= 1000000 { // 1 token = 100000
continue
}
checkAmount += amount
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func ConvertBech32Address(dstChainAddress, srcDenom string) (string, error) {
if err != nil {
return "", fmt.Errorf("error decoding address: %w", err)
}
newBech32DelAddr, err := bech32.ConvertAndEncode(srcDenom, bz)
newBech32DelAddr, err := bech32.ConvertAndEncode("pica", bz)
if err != nil {
return "", fmt.Errorf("error converting address: %w", err)
}
Expand Down

0 comments on commit 64bbcb8

Please sign in to comment.