api
api copied to clipboard
TypeError: Converting circular structure to JSON - Uploading Contract
- I'm submitting an error experimented when upload a Smart Contract using PolkadotJS UI
- [X] Bug report
- [ ] Feature request
- [ ] Support request
- [ ] Other
- What is the current behavior and expected behavior?
I want to upload an ink! Smart contract using the PolkadotJS UI portal in a local node that runs with the pallet contracts on it. To replicate this issue the Substrate Contracts Node can be used.
When I click the button Upload & deploy code and upload the files the screen keeps loading, and in the Developer Console the following error appears:
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'r'
| property '_events' -> object with constructor 's'
| property 'ready' -> object with constructor 'i'
--- property 'context' closes the circle
at JSON.stringify (<anonymous>)
I can upload the contract using other alternatives using Contracts UI and using the tool cargo-contract.
- Others: The issue was first discovered in this StackExchange question: Not able to upload contract in substrate node template
any update in this issue @AlexD10S @jacogr?
Also hitting this issue.
The issue is still persisting. Something crucial like this shouldn't be unfixed for 2months+.
The issue is still persisting. Something crucial like this shouldn't be unfixed for 2months+.
If its that crucial, I would suggest you help out and open a PR then.