Skip to content

Commit

Permalink
feat: airdrop.json with other bech32 prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Apr 17, 2024
1 parent 6835b41 commit e3c0b41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ func distribution(accounts []Account, params distriParams) (airdrop, error) {
airdrop.atone.unstaked = airdrop.atone.unstaked.Add(liquidAirdropAmt)
// add address and amount (skipping 0 balance)
if amtInt := airdropAmt.RoundInt(); !amtInt.IsZero() {
airdrop.addresses[acc.Address] = amtInt
// Derive address
atomOneAddr, err := convertBech32(acc.Address, "cosmos", "atom")
if err != nil {
return airdrop, err
}
airdrop.addresses[atomOneAddr] = amtInt
}
}
return airdrop, nil
Expand Down

0 comments on commit e3c0b41

Please sign in to comment.