Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onchain_events decodeEventKey error #54

Closed
uvd opened this issue Jun 6, 2022 · 2 comments
Closed

onchain_events decodeEventKey error #54

uvd opened this issue Jun 6, 2022 · 2 comments

Comments

@uvd
Copy link
Contributor

uvd commented Jun 6, 2022

in chrome will
node test is ok

decode event key error TypeError: Buffer.from(...).readBigUInt64LE is not a function

const salt = Buffer.from(saltBytes).readBigUInt64LE();

@wk3368
Copy link
Collaborator

wk3368 commented Jun 7, 2022

// Uint8Array is a general-purpose byte-array that’s available in both nodejs and browsers.
// Buffer is a subclass of Uint8Array that’s only available in nodejs
// So we must use Uint8Array, instead of Buffer

@wk3368
Copy link
Collaborator

wk3368 commented Jun 7, 2022

fixed in 4728434

@wk3368 wk3368 closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants