ethers.utils.concat in ethers v6 #4843
linhtt-smartosc
started this conversation in
General
Replies: 1 comment
-
Sorry, I'm not quite certain which direction you want. If you are using v6 and want to concatenate a bunch of items, but get the result as a Uint8Array, you can use: Is that what you are looking for? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I am using ethers v6 working on another source code using ethers v5.6.9. The source code used function
concat()
fromethers/lib/utils
. It seems like in v5.7 document, this function is:ethers.utils.concat( arrayOfBytesLike ) ⇒ Uint8Array
. It takes input ofarrayOfBytesLike
and returnUint8Array
. But in v6, this function is the replacement for functionhexConcat()
in v5 and it returns a string which isDataHexString
by concatenating all values within data. What function can I use in replace ofconcat()
function in v5?Beta Was this translation helpful? Give feedback.
All reactions