@staratlas/data-source
Advanced tools
Comparing version 0.2.1 to 0.2.2
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeAccountWithRemaining = exports.decodeAccount = void 0; | ||
const anchor_1 = require("@project-serum/anchor"); | ||
const camelcase_1 = __importDefault(require("camelcase")); | ||
function decodeAccount(account, program, accountClass) { | ||
@@ -29,3 +25,3 @@ if (!account.accountInfo.owner.equals(program.programId)) { | ||
const coder = program.coder; | ||
const data = coder.accounts.decode((0, camelcase_1.default)(accountClass.ACCOUNT_NAME, { pascalCase: true }), account.accountInfo.data); | ||
const data = coder.accounts.decode(accountClass.ACCOUNT_NAME, account.accountInfo.data); | ||
return { | ||
@@ -67,3 +63,3 @@ type: 'ok', | ||
const coder = program.coder; | ||
const data = coder.accounts.decode((0, camelcase_1.default)(accountClass.ACCOUNT_NAME, { pascalCase: true }), account.accountInfo.data); | ||
const data = coder.accounts.decode(accountClass.ACCOUNT_NAME, account.accountInfo.data); | ||
return { | ||
@@ -70,0 +66,0 @@ type: 'ok', |
{ | ||
"name": "@staratlas/data-source", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "> TODO: description", | ||
@@ -28,3 +28,3 @@ "author": "Brett Etter <brett.etter@staratlas.com>", | ||
}, | ||
"gitHead": "85119c642c3b2a0c79f15e3e766655f4b74a975f" | ||
"gitHead": "95e0c5948f56d6b4f623b7ef37a60205fac7378a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117328
1355