1
vote
How to test a function that returns array type struct using Foundry
I can read from the error that you are comparing two instances of MarketItem that seem to be defined in two different contracts (ContractTest vs NFTMarketPlace).
I guess you have copied the MarketItem ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ethereumjs × 750web3js × 280
solidity × 231
blockchain × 108
go-ethereum × 76
javascript × 67
metamask × 55
truffle × 51
ether × 44
nodejs × 43
contract-development × 41
ethereum-wallet-dapp × 41
transactions × 34
ethers.js × 34
remix × 32
erc-20 × 32
react × 26
ethereumjs-tx × 26
dapps × 24
hardhat × 24
signature × 22
testrpc × 21
tokens × 20
etherscan × 19
smart-contract-wallets × 18