You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: invalid BytesLike value (argument="value", value="0x[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_favoriteNumber\",\"type\":\"uint256\"}],\"name\":\"addPerson\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"nameToFavoriteNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"people\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"favoriteNumber\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"retrieve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_favoriteNumber\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", code=INVALID_ARGUMENT, version=6.11.1)
at makeError (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\utils\errors.js:122:21)
at assert (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\utils\errors.js:149:15)
at assertArgument (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\utils\errors.js:161:5)
at _getBytes (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\utils\data.js:27:36)
at getBytes (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\utils\data.js:37:12)
at new ContractFactory (D:\Web3\hh-fcc\ethers-simple-storage-fcc\node_modules\ethers\lib.commonjs\contract\factory.js:46:72)
at main (D:\Web3\hh-fcc\ethers-simple-storage-fcc\deploy.js:18:27)
at Object.<anonymous> (D:\Web3\hh-fcc\ethers-simple-storage-fcc\deploy.js:24:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) {code: 'INVALID_ARGUMENT', argument: 'value', value: '0x[{"inputs":[{"internalType":"string","name"…eMutability":"nonpayable","type":"function"}]', shortMessage: 'invalid BytesLike value', stack: 'TypeError: invalid BytesLike value (argument=…js (node:internal/modules/cjs/loader:1427:10)', …}
My code is
Error is
Originally posted by @Waseem-Baig in #6547
The text was updated successfully, but these errors were encountered: