PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@near-js/accounts/node_modules/@near-js/utils/lib/commonjs
Просмотр файла: provider.cjs
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransactionLastResult = void 0;
/** @hidden */
function getTransactionLastResult(txResult) {
if (typeof txResult.status === 'object' && typeof txResult.status.SuccessValue === 'string') {
const value = Buffer.from(txResult.status.SuccessValue, 'base64').toString();
try {
return JSON.parse(value);
}
catch (e) {
return value;
}
}
return null;
}
exports.getTransactionLastResult = getTransactionLastResult;
Выполнить команду
Для локальной разработки. Не используйте в интернете!