adrianhajdin / project_crowdfunding

With a stunning design, connected to the blockchain, metamask pairing, interaction with smart contracts, sending Ethereum through the blockchain network, and writing solidity code.
https://jsmastery.pro
680 stars 372 forks source link

[BugFix - Error: Function "getDonators" requires 1 arguments, but undefined were provided. #31] #52

Closed krishnaacharyaa closed 1 year ago

krishnaacharyaa commented 1 year ago

Change const donations = await contract.call('getDonators', pId); to const donations = await contract.call('getDonators', [pId]);

And now to change the further commented error

Warning: Each child in a list should have a unique "key" prop.

Try adding unique id by uuidv4 by npm