Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@multiversx/sdk-core

Package Overview
Dependencies
Maintainers
10
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multiversx/sdk-core - npm Package Compare versions

Comparing version 13.0.0-beta.18 to 13.0.0

13

out/adapters/queryRunnerAdapter.js

@@ -11,3 +11,3 @@ "use strict";

async runQuery(query) {
const legacyQuery = {
const adaptedQuery = {
address: address_1.Address.fromBech32(query.contract),

@@ -19,10 +19,9 @@ caller: query.caller ? address_1.Address.fromBech32(query.caller) : undefined,

};
const legacyQueryResponse = await this.networkProvider.queryContract(legacyQuery);
const queryResponse = new smartContractQuery_1.SmartContractQueryResponse({
const adaptedQueryResponse = await this.networkProvider.queryContract(adaptedQuery);
return new smartContractQuery_1.SmartContractQueryResponse({
function: query.function,
returnCode: legacyQueryResponse.returnCode.toString(),
returnMessage: legacyQueryResponse.returnMessage,
returnDataParts: legacyQueryResponse.getReturnDataParts(),
returnCode: adaptedQueryResponse.returnCode.toString(),
returnMessage: adaptedQueryResponse.returnMessage,
returnDataParts: adaptedQueryResponse.getReturnDataParts(),
});
return queryResponse;
}

@@ -29,0 +28,0 @@ }

@@ -96,3 +96,3 @@ "use strict";

if (hash.length !== constants_1.HEX_TRANSACTION_HASH_LENGTH) {
throw new errors_1.Err("Invalid transaction hash length. The length of a hex encoded hash should be 64.");
throw new errors_1.Err(`Invalid transaction hash length. The length of a hex encoded hash should be ${constants_1.HEX_TRANSACTION_HASH_LENGTH}.`);
}

@@ -99,0 +99,0 @@ return hash;

{
"name": "@multiversx/sdk-core",
"version": "13.0.0-beta.18",
"version": "13.0.0",
"description": "MultiversX SDK for JavaScript and TypeScript",

@@ -5,0 +5,0 @@ "main": "out/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc