UNPKG

@aut-labs/sdk

Version:

The TS/JS SDK package aims to make it easy for frontends/backends to integrate with Aut Smart Contracts

12 lines 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findLogEvent = void 0; const ethers_1 = require("ethers"); const findLogEvent = (tx, eventName) => { const eventsEmitted = tx.logs .filter((e) => e instanceof ethers_1.EventLog) .find((e) => e.eventName === eventName); return eventsEmitted; }; exports.findLogEvent = findLogEvent; //# sourceMappingURL=find-event.js.map