Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@txnlab/use-wallet": "^4.0.0",
"@txnlab/use-wallet-react": "^4.0.0",
"@xstate/react": "^5.0.3",
"algosdk": "3.1.0",
"algosdk": "3.3.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^1.0.0",
Expand Down Expand Up @@ -200,4 +200,4 @@
"esbuild": "0.25.0",
"@algorandfoundation/algokit-utils": "^9.2.0-future.6"
}
}
}
42 changes: 42 additions & 0 deletions patches/algosdk+3.3.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/node_modules/algosdk/dist/cjs/encoding/schema/bytearray.js b/node_modules/algosdk/dist/cjs/encoding/schema/bytearray.js
index 99f77ca..15fb232 100644
--- a/node_modules/algosdk/dist/cjs/encoding/schema/bytearray.js
+++ b/node_modules/algosdk/dist/cjs/encoding/schema/bytearray.js
@@ -34,6 +34,9 @@ class ByteArraySchema extends encoding_js_1.Schema {
throw new Error(`Invalid byte array: (${typeof data}) ${data}`);
}
fromPreparedJSON(encoded) {
+ if (encoded === null || encoded === undefined) {
+ return new Uint8Array();
+ }
if (typeof encoded === 'string') {
return (0, binarydata_js_1.base64ToBytes)(encoded);
}
diff --git a/node_modules/algosdk/dist/esm/encoding/schema/bytearray.js b/node_modules/algosdk/dist/esm/encoding/schema/bytearray.js
index d9ed6fa..5bd9eb5 100644
--- a/node_modules/algosdk/dist/esm/encoding/schema/bytearray.js
+++ b/node_modules/algosdk/dist/esm/encoding/schema/bytearray.js
@@ -31,6 +31,9 @@ export class ByteArraySchema extends Schema {
throw new Error(`Invalid byte array: (${typeof data}) ${data}`);
}
fromPreparedJSON(encoded) {
+ if (encoded === null || encoded === undefined) {
+ return new Uint8Array();
+ }
if (typeof encoded === 'string') {
return base64ToBytes(encoded);
}
diff --git a/node_modules/algosdk/src/encoding/schema/bytearray.ts b/node_modules/algosdk/src/encoding/schema/bytearray.ts
index 5218049..6648087 100644
--- a/node_modules/algosdk/src/encoding/schema/bytearray.ts
+++ b/node_modules/algosdk/src/encoding/schema/bytearray.ts
@@ -48,6 +48,9 @@ export class ByteArraySchema extends Schema {
}

public fromPreparedJSON(encoded: JSONEncodingData): Uint8Array {
+ if (encoded === null || encoded === undefined) {
+ return new Uint8Array();
+ }
if (typeof encoded === 'string') {
return base64ToBytes(encoded);
}