UNPKG

hardhat-tracer

Version:

Hardhat Tracer plugin

18 lines 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTxHash = void 0; function getTxHash(request, response) { // console.log("getTxHash", request.method, response); if (request.method === "eth_sendTransaction" || request.method === "eth_sendRawTransaction") { if (typeof response === "string") { return response; } else if (response && typeof response === "object") { return response.hash; } } return null; } exports.getTxHash = getTxHash; //# sourceMappingURL=tx-hash.js.map