Merge pull request #113 from urbit/nonce-default
add defaults for nonce and chainId, and clear signed transaction
commit89f63802dd91a2bb507205b9157439e9bc8f062b
authorChristopher Johnson <chris@cjohnson.io>
dateFri 12 Apr 2019, 13:30 (8 years ago)
parent53871635a3087e
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(){