With a stunning design, connected to the blockchain, metamask pairing, interaction with smart contracts, sending Ethereum through the blockchain network, and writing solidity code.
I get this error when I trie to create a campaign. Full error:
Error: Function "createCampaign" requires 6 arguments, but 0 were provided.
Expected function signature: contract.call("createCampaign", _owner: string, _title: string, _description: string, _target: BigNumberish, _deadline: BigNumberish, _image: string): Promise<BigNumber>
at ContractWrapper.call (watchTransactions-e6bbb343.browser.esm.js:2725:13)
at SmartContract.call (watchTransactions-e6bbb343.browser.esm.js:16775:33)
at Object.mutationFn (useTransactions-3346bed6.browser.esm.js:2373:21)
at Object.fn (mutation.ts:179:31)
at run (retryer.ts:147:31)
at createRetryer (retryer.ts:204:5)
at executeMutation (mutation.ts:174:22)
at Mutation.execute (mutation.ts:216:26)
at async publishCampaign (index.jsx:18:26)
at async CreateCampaign.jsx:33:17
execute @ mutation.ts:261
index.jsx:29 contract call failure Error: Function "createCampaign" requires 6 arguments, but 0 were provided.
Expected function signature: contract.call("createCampaign", _owner: string, _title: string, _description: string, _target: BigNumberish, _deadline: BigNumberish, _image: string): Promise<BigNumber>
at ContractWrapper.call (watchTransactions-e6bbb343.browser.esm.js:2725:13)
at SmartContract.call (watchTransactions-e6bbb343.browser.esm.js:16775:33)
at Object.mutationFn (useTransactions-3346bed6.browser.esm.js:2373:21)
at Object.fn (mutation.ts:179:31)
at run (retryer.ts:147:31)
at createRetryer (retryer.ts:204:5)
at executeMutation (mutation.ts:174:22)
at Mutation.execute (mutation.ts:216:26)
at async publishCampaign (index.jsx:18:26)
at async CreateCampaign.jsx:33:17
I get this error when I trie to create a campaign. Full error:
My indx.js fiele in Context:
CreateCampaign.jsx