Skip to content

Commit

Permalink
With fee
Browse files Browse the repository at this point in the history
  • Loading branch information
d13co committed Oct 16, 2024
1 parent 4690698 commit 7fef605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions algo_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type AUrlTxn struct {
type AUrlTxnKeyCommon struct {
Sender string `url:"-"`
Type string `url:"type"`
Fee *uint64 `url:"fee,omitempty"`
}

type AUrlTxnKeyreg struct {
Expand Down Expand Up @@ -75,6 +76,9 @@ func makeQRKeyRegRequest(encodedTxn []byte) (*AUrlTxn, error) {
VoteKeyDilution: toPtrOrNil(txn.Txn.VoteKeyDilution),
},
}
if uint64(txn.Txn.Fee) != uint64(1000) {
kr.AUrlTxnKeyCommon.Fee = toPtr(uint64(txn.Txn.Fee))
}

return kr, nil
}
Expand Down

0 comments on commit 7fef605

Please sign in to comment.