Skip to content

Commit

Permalink
Merge pull request #19 from sorare/pd/fee-null
Browse files Browse the repository at this point in the history
Allow null value for fees and conditions in Transfer and LimitOrder types
  • Loading branch information
piedup committed May 29, 2023
2 parents 7e2811f + 851ab7d commit ca2c309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"description": "Crypto used in the Sorare stack",
"author": "Sorare",
"license": "MIT",
"version": "1.3.2",
"version": "1.3.3",
"main": "lib.js",
"dependencies": {
"bigint-buffer": "^1.1.5",
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Expand Up @@ -16,8 +16,8 @@ export interface Transfer {
receiverPublicKey: string;
nonce: number;
expirationTimestamp: number;
condition?: string;
feeInfoUser?: Fee;
condition?: string | null;
feeInfoUser?: Fee | null;
}

export interface LimitOrder {
Expand All @@ -29,7 +29,7 @@ export interface LimitOrder {
tokenBuy: string;
nonce: number;
expirationTimestamp: number;
feeInfo?: Fee;
feeInfo?: Fee | null;
}

export interface Signature {
Expand Down

0 comments on commit ca2c309

Please sign in to comment.