Skip to content

Commit

Permalink
[BugFix - createCampaign requires 6 arguments adrianhajdin#34 and adr…
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaacharyaa committed May 28, 2023
1 parent 5155f78 commit 8eecfa9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions client/src/context/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ export const StateContextProvider = ({ children }) => {

const publishCampaign = async (form) => {
try {
const data = await createCampaign([
address, // owner
form.title, // title
form.description, // description
form.target,
new Date(form.deadline).getTime(), // deadline,
form.image
])
const data = await createCampaign({
args: [
address, // owner
form.title, // title
form.description, // description
form.target,
new Date(form.deadline).getTime(), // deadline,
form.image,
],
});

console.log("contract call success", data)
} catch (error) {
Expand Down

0 comments on commit 8eecfa9

Please sign in to comment.