Skip to content
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

Merged
merged 8 commits into from
May 2, 2024

Conversation

KodeSage
Copy link
Contributor

@KodeSage KodeSage commented May 1, 2024

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.

Copy link

vercel bot commented May 1, 2024

@KodeSage is attempting to deploy a commit to the argentlabs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starknet-scaffold ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2024 10:48am

Copy link
Collaborator

@Darlington02 Darlington02 left a 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 {

Copy link
Collaborator

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?

Copy link
Contributor Author

@KodeSage KodeSage May 2, 2024

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)){
Copy link
Collaborator

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";
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 {
Copy link
Collaborator

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.

@Darlington02 Darlington02 merged commit 9ce786a into horuslabsio:main May 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants