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

fix(deps) Update starknet-reacts next to 3.0.0-beta.3 #37

Merged
merged 6 commits into from
Sep 11, 2024
Merged

Conversation

Inukares
Copy link
Contributor

@Inukares Inukares commented Sep 5, 2024

No description provided.

Copy link

vercel bot commented Sep 5, 2024

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

Name Status Preview Comments Updated (UTC)
dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 6:27am

Decouple components using different
lib versions.
Decouple components using different
lib versions.

const buttonsDisabled = ["approve", "pending"].includes(transactionStatus)

const { contract } = useContract({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using new api from newest version of starknet-react

Comment on lines +32 to +33
"starknet-react-chains-next": "npm:@starknet-react/[email protected].3",
"starknet-react-core-next": "npm:@starknet-react/[email protected].3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should set it to this version or will they release the final one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there shouldn't be any differences, just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk to be honest, but it is a good question


export const MintWithStarknetReact = () => {
const { account } = useAccount()
const [mintAmount, setMintAmount] = useState("10")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be prepopulated with 10?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a copy-paste from previous component, so didn't want to change it. I assume it's just some random default

value={mintAmount}
onChange={(e) => setMintAmount(e.target.value)}
/>
{/* TODO: When will we allow below? Need to ask Ale */}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why would we disable it at all, after all it's just an example dapp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Ale and blockchian team. He basically said it's always been there. Going yolo and enabling the submit 😂

<Input
type="submit"
disabled={true || buttonsDisabled}
value="Not possible with ETH!"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value="Not possible with ETH!" what does this mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Ale and blockchian team. He basically said it's always been there. Going yolo and enabling the submit 😂

export const TransferWithStarknetReact = () => {
const { account } = useAccount()
const [transferTo, setTransferTo] = useState("")
const [transferAmount, setTransferAmount] = useState("1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@Inukares Inukares merged commit f3eb2be into develop Sep 11, 2024
3 checks passed
@Inukares Inukares deleted the update-deps branch September 11, 2024 09:48
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