Skip to content

Commit

Permalink
Merge pull request #1 from mellowcroc/fix-bufferifyfn-bug
Browse files Browse the repository at this point in the history
Fix bufferifyFn bug
  • Loading branch information
mellowcroc authored Feb 14, 2024
2 parents 1079da6 + 3844ea2 commit 01a5fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class Base {
}

if (typeof v === 'bigint') {
return Buffer.from(value.toString(16), 'hex')
return Buffer.from(v.toString(16), 'hex')
}

if (ArrayBuffer.isView(v)) {
Expand Down

0 comments on commit 01a5fbc

Please sign in to comment.