coinbase / coinbase/onchainkit
Bug: Intermittent errors using TransactionButton with CB Browser Wallet
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 520
- Avg merge
- 32m
- Merged PRs (30d)
- 2
Description
I'm seeing intermittent errors when using the `TransactionButton` to initiate a new contract call via Coinbase Browser Wallet at [songbirdz.cc](https://songbirdz.cc/collection). See the 2 screenshots below for the specific errors in my console, but it takes me a few times clicking on the button before I can succesfully get Coinbase Browser Wallet to open up with the new contract call.
You can see the relevant code here: https://github.com/dry-tortuga/songbirdz-collection-frontend/blob/main/src/components/BirdIdentificationModal.js#L135
A contributing factor could be that I need to wait for the result of an async API call before I can fully build the `contracts=[{ ... }]` prop that is passed to `Transaction`, so wondering if that could be causing an issue?
Any better workarounds for this kind of use case?


### What's the expected behavior?
Clicking on the `TransactionButton` should initiate the transaction request in the Coinbase Browser Wallet for final confirmation on the first click attempt.
### What version of the libraries are you using?
- Onchainkit@v0.28.7
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.