Use hexify wherever possible
commitfbcd6b69d447fb8c1dc20568116b189747737453
authorFang <git@fang.io>
dateWed 3 Jul 2019, 20:09 (7 years ago)
parent5d25c4a
src/lib/invite.js+1−1
@@ -230,7 +230,7 @@ async function claimPointFromInvite({
230230 let stx = new Tx(tx);
231231 stx.sign(Buffer.from(inviteWallet.privateKey, 'hex'));
232232 return {
233− raw: '0x' + stx.serialize().toString('hex'),
233+ raw: hexify(stx.serialize()),
234234 signed: stx,
235235 };
236236 });
src/lib/txn.js+1−1
@@ -144,7 +144,7 @@ const sendSignedTransaction = (web3, stx, doubtNonceError, confirmationCb) => {
144144 },
145145 });
146146
147− const rawTx = addHexPrefix(txn.serialize().toString('hex'));
147+ const rawTx = hexify(txn.serialize());
148148
149149 return new Promise(async (resolve, reject) => {
150150 web3.eth