@ledgerhq/coin-aptos
Version:
Ledger Aptos Coin integration
12 lines • 435 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFunctionAddress = void 0;
function getFunctionAddress(payload) {
if (payload.function) {
const parts = payload.function.split("::");
return parts.length === 3 && parts[0].length ? parts[0] : undefined;
}
return undefined;
}
exports.getFunctionAddress = getFunctionAddress;
//# sourceMappingURL=getFunctionAddress.js.map