on master help sign in
devex: remove unused fn
4303e5etomholford
src/lib/txn.ts−13
@@ -289,18 +289,6 @@ const sendTransactionsAndAwaitConfirm = async (
289
289
290const hexify = (val: string | Buffer) => addHexPrefix(val.toString('hex'));
290const hexify = (val: string | Buffer) => addHexPrefix(val.toString('hex'));
291
291
292−const getTxnInfo = async (web3: Web3, addr: string) => {
293− let nonce = await web3.eth.getTransactionCount(addr);
294− let chainId = await web3.eth.net.getId();
295− let gasPrice = await web3.eth.getGasPrice();
296−
297− return {
298− nonce: nonce,
299− chainId: chainId,
300− gasPrice: safeFromWei(gasPrice, 'gwei'),
301− };
302−};
303−
304export {
292export {
305 RETRY_OPTIONS,
293 RETRY_OPTIONS,
306 FakeSignResult,
294 FakeSignResult,
@@ -310,6 +298,5 @@ export {
310 sendTransactionsAndAwaitConfirm,
298 sendTransactionsAndAwaitConfirm,
311 sendAndAwaitAll,
299 sendAndAwaitAll,
312 sendAndAwaitAllSerial,
300 sendAndAwaitAllSerial,
313− getTxnInfo,
314 hexify,
301 hexify,
315};
302};