Skip to content

Commit

Permalink
fix: payment schema
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Sep 9, 2024
1 parent ef195da commit ea7f4f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/algorand.transaction.pay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class PayTransaction {
fv: number
lv: number
note?: Uint8Array
gen: string
gen?: string
gh: Uint8Array

// encode the transaction
Expand Down
10 changes: 6 additions & 4 deletions lib/schemas/pay.transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"gen": {
"type": "string"
},
"close": {
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"gh": {
"$ref": "bytes32.json"
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"type": {
"type": "string",
Expand All @@ -21,10 +24,10 @@
"type": "integer"
},
"snd": {
"$ref": "bytes32.json"
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"rcv": {
"$ref": "bytes32.json"
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"fv": {
"type": "integer",
Expand All @@ -36,7 +39,6 @@
}
},
"required": [
"gen",
"gh",
"type",
"fee",
Expand Down

0 comments on commit ea7f4f8

Please sign in to comment.