Skip to content

Lesson11: Base64.encode(abi.encodePacked(svg)) == Base64.encode(bytes(string(abi.encodePacked(svg)))), is that possible? #1996

Answered by codeplay22
codeplay22 asked this question in Q&A
Discussion options

You must be logged in to vote

@EngrPips no, i asked that to know the concept behind it only.
So according to patrick i think answer would be to use it like this only Base64.encode(abi.encodePacked(svg))

and the same thing can be done here as well in Moodnft.s.sol

there's no need to convert abi.EncodePacked to bytes you can remove it and it will work fine.

Like that -

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@codeplay22
Comment options

Comment options

You must be logged in to vote
6 replies
@PatrickAlphaC
Comment options

@codeplay22
Comment options

@EngrPips
Comment options

@codeplay22
Comment options

Answer selected by codeplay22
@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants