Skip to content

Commit 4f762b2

Browse files
committed
docs: added comment explaining bigint-buffer-guard.ts
Ticket: DX-1549
1 parent f932548 commit 4f762b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

modules/sdk-coin-sol/src/bigint-buffer-guard.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Added a lightweight runtime guard for BigInt<->Buffer conversions in @bitgo/sdk-coin-sol (bigint-buffer-guard.ts) to validate input lengths and reduce misuse risk.
2+
// It's purpose is to enforce input type/length checks around BigInt buffer operations; imported it so validations run at module load
3+
14
try {
25
const mod = require('bigint-buffer');
36
const le = typeof mod.toBigIntLE === 'function' ? mod.toBigIntLE : undefined;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
"**/swarm-js/**/ws": "5.2.4",
100100
"serialize-javascript": "^6.0.2",
101101
"@grpc/grpc-js": "^1.12.6",
102-
"bigint-buffer": "npm:@trufflesuite/[email protected]"
102+
"bigint-buffer": "npm:@trufflesuite/[email protected]",
103+
"request": "npm:@cypress/[email protected]",
104+
"**/avalanche/store2": "2.14.4"
103105
},
104106
"workspaces": [
105107
"modules/*"

0 commit comments

Comments
 (0)