Closed mcintyre94 closed 2 months ago
Latest commit: f69eed11119dbb51318b2456d0a69baa3d9d9f01
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The
identifyXInstruction
andidentifyXAccount
already accept aUint8Array
that can be used to identify an instruction given just the data byte array. But if this comes from a web3js encoder (eg encoding base64 data from somewhere else), then the datatype will beReadonlyUint8Array
instead.This PR updates these identify functions to allow an input of
ReadonlyUint8Array
instead. This doesn't require any further changes, as everything being done with data is already compatible withReadonlyUint8Array
. It's also backward compatible, you can still pass aUint8Array
in.This means that output from our encoders can now be passed directly to these generated instructions.