Return signed transaction object
In addition to calling the callback with it. To support simpler,
async-await powered flows.
commite9c2016c06c1d8a584707f4c8826bb726a6f3008
authorFang <git@fang.io>
dateWed 5 Jun 2019, 17:00 (7 years ago)
parentad687ef
src/bridge/lib/txn.js+2−1
@@ -134,7 +134,8 @@ const signTransaction = async config => {
134134 stx.sign(sec)
135135 }
136136
137− setStx(Just(stx))
137+ setStx(Just(stx));
138+ return stx;
138139}
139140
140141const sendSignedTransaction = (web3, stx, doubtNonceError, confirmationCb) => {