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

Goerli Exception #693

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Goerli Exception #693

merged 4 commits into from
Oct 31, 2023

Conversation

sneakzttv
Copy link
Contributor

@sneakzttv sneakzttv commented Oct 31, 2023

A simple check on the sample scene that throws an exception informing the user that they need to be on the goerli chain to see the examples functioning. Closes #649

I've placed the script on an object in the root of the sample main scenes object hierarchy. I didn't want to put the check on the sample scripts or in the behavior as we would just be creating more code for the user to edit come development time.

To test, simply login to the samples main area on a chain that isn't goerli and you should see an error.

A simple check on the sample scene that throws an exception informing the user that they need to be on the goerli chain to see the examples functioning.
Copy link
Contributor

@kantagara kantagara left a comment

Choose a reason for hiding this comment

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

Should be good after switching the exceptions type.

Copy link
Contributor

@juans-chainsafe juans-chainsafe left a comment

Choose a reason for hiding this comment

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

Working as expected!

Eth mainnet:
Screenshot 2023-10-31 at 09 37 04

Goerli:
Screenshot 2023-10-31 at 09 38 29

@sneakzttv sneakzttv merged commit 550ab18 into main Oct 31, 2023
@sneakzttv sneakzttv deleted the sneakz/goerli-check branch October 31, 2023 13:16
robGG1997 pushed a commit that referenced this pull request Nov 3, 2023
* Goerli check

A simple check on the sample scene that throws an exception informing the user that they need to be on the goerli chain to see the examples functioning.

* Auto-duplicate Package Samples

* Web3 exception

Web3 exception

* Auto-duplicate Package Samples

---------

Co-authored-by: sneakzttv <sneakzttv@users.noreply.github.com>
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Goerli check

A simple check on the sample scene that throws an exception informing the user that they need to be on the goerli chain to see the examples functioning.

* Auto-duplicate Package Samples

* Web3 exception

Web3 exception

* Auto-duplicate Package Samples

---------

Co-authored-by: sneakzttv <sneakzttv@users.noreply.github.com>
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.

Throw exception on web3.unity Samples if chainId != 5 // Goerli
4 participants