UNPKG

@ledgerhq/coin-aptos

Version:
13 lines 493 B
import { isWriteSetChangeWriteResource } from "./isWriteSetChangeWriteResource"; export function getResourceAddress(tx, event, event_name, getAddressProcessor) { for (const change of tx.changes) { if (isWriteSetChangeWriteResource(change)) { const address = getAddressProcessor(change, event, event_name); if (address !== null) { return address; } } } return null; } //# sourceMappingURL=getResourceAddress.js.map