- add defaults for nonce and chainId, and clear the signed transaction when chainId changes
commit5a3087e6faa960d20b96dfc5ccba6c986f60eec4
authorChris Johnson <chris@cjohnson.io>
dateThu 11 Apr 2019, 17:12 (8 years ago)
parent7c95d19
src/bridge/components/StatelessTransaction.js+4−2
@@ -28,9 +28,9 @@ class StatelessTransaction extends React.Component {
2828 gasLimit: '600000',
2929 showGasDetails: false,
3030 userApproval: false,
31− chainId: '',
31+ chainId: '1',
3232 customChain: false,
33− nonce: '',
33+ nonce: '0',
3434 stx: Nothing(),
3535 txn: Nothing(),
3636 txError: Nothing()
@@ -120,6 +120,8 @@ class StatelessTransaction extends React.Component {
120120 chainId
121121 })
122122 }
123+
124+ this.clearStx()
123125 }
124126
125127 setUserApproval(){