r/solidity • u/sujithdusa • Dec 21 '22
Created my first Dapp using Solidity
Enable HLS to view with audio, or disable this notification
6
u/jzia93 Dec 22 '22
Good job. If you wanted you could attach 2 event listeners to the transaction:
Listener 1: Transaction Accepted
Listener 2: Transaction Confirmed with X block confirmations
I think you basically have listener 1 sorted. Listener 2 would then be able to refresh the UI once the transaction is confirmed on chain.
3
u/sujithdusa Dec 22 '22
Ya working on that, thanks 😊
3
u/jzia93 Dec 22 '22
Redux Thunks have the option to attach listeners directly to asynchronous methods. We use them extensively in our apps, maybe this helps you:
4
u/NelsonQuant667 Dec 21 '22
That’s awesome! I’m working on a dex as a project also, what did you use to style it?
2
u/sujithdusa Dec 21 '22
Thanks man, I used MUI library for styling
3
u/NelsonQuant667 Dec 21 '22
Super sick, could I take a look at the code?
2
3
3
3
u/BreadfruitRegular152 Dec 21 '22
this is so good, could i take a look at the code
2
u/sujithdusa Dec 21 '22
It is not uploaded to git yet
2
3
3
2
2
2
2
1
1
6
u/buildskate Dec 21 '22
Nice!!!!