-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed the Deploy Contract[Starknet/ReactJs] #64
Conversation
…for Scaffold Deployer
…for Scaffold Deployer
@KodeSage is attempting to deploy a commit to the argentlabs Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @KodeSage please address the following comments, and I'd merge your changes
@@ -1,6 +1,5 @@ | |||
#[starknet::contract] | |||
mod Account { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what change was made here? if not necessary, could you please undo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Darlington02 , no not at all o
if (!isConnected || !account) { | ||
throw new Error("Connect wallet to continue"); | ||
} | ||
// if(constructorArguments === ("" || null)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks a bit messy, please clear up comments/unused codes
@@ -5,6 +5,10 @@ import trash from "../../../../public/assets/deleteIcon.svg"; | |||
import { useRef, useState } from "react"; | |||
import Header from "../Header"; | |||
import Image from "next/image"; | |||
import { UniversalDeployerContractPayload, provider , CallData} from "starknet"; | |||
import { useAccount,useProvider } from "@starknet-react/core"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space between useAccount and useProvider
@@ -100,24 +140,36 @@ function ScaffoldDeployer() { | |||
Declare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
work on ensuring codes are aligned properly:)
/> | ||
<input | ||
{/* <input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please ensure to uncomment the input boxes for taking in the constructor argument and no. of constructor arguments. deploying with constructor arguments will be addressed in another issue
@@ -0,0 +1,15 @@ | |||
// import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this wallet.service.ts file, seems to have no use.
Description
_Concise and detailed description of proposed changes.
Additional Information
Related Issues
_Closes #45
Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.