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: interaction with some smart contract functions is broken in WebGL #19

Merged
merged 5 commits into from
Aug 2, 2024

Conversation

skibitsky
Copy link
Member

close #12

@skibitsky skibitsky changed the title fix: byte array arguments not working in WebGL fix: interaction with some smart contract functions is broken in WebGL Aug 1, 2024
@skibitsky skibitsky requested a review from jackpooleywc August 1, 2024 13:50
Copy link

@jackpooleywc jackpooleywc left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +91 to +94
#if !UNITY_WEBGL || UNITY_EDITOR
_connectorController.AccountConnected += ConnectorAccountConnectedHandler;
_connectorController.AccountChanged += ConnectorAccountChangedHandler;
#endif

Choose a reason for hiding this comment

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

Are these features not supported on WebGL?

Copy link
Member Author

Choose a reason for hiding this comment

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

These event handler update ENS name, avatar, and account balance in native Unity UI. In WebGL @web3modal/wagmi takes care of that, so these handler were just making duplicate requests to the blockchain api.

@skibitsky skibitsky merged commit d55882e into main Aug 2, 2024
@skibitsky skibitsky deleted the fix/webgl-solidity-data-types branch August 2, 2024 14:55
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.

WebGL/Wagmi byte types are serialized as base64
2 participants