on master help sign in
Use hexify wherever possible
fbcd6b6Fang
src/lib/invite.js+1−1
@@ -230,7 +230,7 @@ async function claimPointFromInvite({
230 let stx = new Tx(tx);
230 let stx = new Tx(tx);
231 stx.sign(Buffer.from(inviteWallet.privateKey, 'hex'));
231 stx.sign(Buffer.from(inviteWallet.privateKey, 'hex'));
232 return {
232 return {
233− raw: '0x' + stx.serialize().toString('hex'),
233+ raw: hexify(stx.serialize()),
234 signed: stx,
234 signed: stx,
235 };
235 };
236 });
236 });
src/lib/txn.js+1−1
@@ -144,7 +144,7 @@ const sendSignedTransaction = (web3, stx, doubtNonceError, confirmationCb) => {
144 },
144 },
145 });
145 });
146
146
147− const rawTx = addHexPrefix(txn.serialize().toString('hex'));
147+ const rawTx = hexify(txn.serialize());
148
148
149 return new Promise(async (resolve, reject) => {
149 return new Promise(async (resolve, reject) => {
150 web3.eth
150 web3.eth