Skip to content

Goerli Exception - #693

Merged
sneakzttv merged 4 commits into
mainfrom
sneakz/goerli-check
Oct 31, 2023
Merged

sneakzttv merged 4 commits into
mainfrom
sneakz/goerli-check

Conversation

@sneakzttv

@sneakzttv sneakzttv commented Oct 31, 2023

Copy link
Copy Markdown
Contributor

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.

@kantagara kantagara left a comment

Copy link
Copy Markdown
Contributor

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.

@juans-chainsafe juans-chainsafe left a comment

Copy link
Copy Markdown
Contributor

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>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 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