The focus of this PR is to add an encode function from the "thirdweb" library and handle encoding transactions in ERC20, ERC721, and ERC1155 contract extensions.
Detailed summary
Added encode function import from "thirdweb"
Replaced manual encoding with encode function for transactions in ERC20, ERC721, and ERC1155 contract extensions
Added error handling for encoding failures and custom error creation
✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}
PR-Codex overview
The focus of this PR is to add an
encode
function from the "thirdweb" library and handle encoding transactions in ERC20, ERC721, and ERC1155 contract extensions.Detailed summary
encode
function import from "thirdweb"encode
function for transactions in ERC20, ERC721, and ERC1155 contract extensions