@ledgerhq/coin-aptos
Version:
Ledger Aptos Coin integration
13 lines • 493 B
JavaScript
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