Socket
Socket
Sign inDemoInstall

@near-js/wallet-account

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-js/wallet-account - npm Package Compare versions

Comparing version 1.3.0-next.6 to 1.3.0-next.7

5

lib/esm/wallet_account.js

@@ -287,2 +287,3 @@ /**

async signAndSendTransaction({ receiverId, actions, walletMeta, walletCallbackUrl = window.location.href }) {
// @ts-expect-error subclass fields
const localKey = await this.connection.signer.getPublicKey(this.accountId, this.connection.networkId);

@@ -306,2 +307,3 @@ let accessKey = await this.accessKeyForTransaction(receiverId, actions, localKey);

}
// @ts-expect-error subclass fields
const block = await this.connection.provider.block({ finality: 'final' });

@@ -312,2 +314,3 @@ const blockHash = baseDecode(block.header.hash);

const nonce = accessKey.access_key.nonce + 1n;
// @ts-expect-error subclass fields
const transaction = createTransaction(this.accountId, publicKey, receiverId, nonce, actions, blockHash);

@@ -344,2 +347,3 @@ await this.walletConnection.requestSignTransactions({

********************************/
// @ts-expect-error subclass fields
if (allowedReceiverId === this.accountId && allowedMethods.includes(MULTISIG_HAS_METHOD)) {

@@ -369,2 +373,3 @@ return true;

async accessKeyForTransaction(receiverId, actions, localKey) {
// @ts-expect-error subclass fields
const accessKeys = await this.getAccessKeys();

@@ -371,0 +376,0 @@ if (localKey) {

20

package.json
{
"name": "@near-js/wallet-account",
"version": "1.3.0-next.6",
"version": "1.3.0-next.7",
"description": "Dependencies for the NEAR API JavaScript client in the browser",
"main": "lib/esm/index.js",
"main": "./lib/commonjs/index.cjs",
"type": "module",

@@ -12,10 +12,10 @@ "keywords": [],

"borsh": "1.0.0",
"@near-js/accounts": "1.3.0-next.6",
"@near-js/crypto": "1.4.0-next.6",
"@near-js/keystores": "0.2.0-next.6",
"@near-js/providers": "1.0.0-next.6",
"@near-js/signers": "0.2.0-next.6",
"@near-js/transactions": "1.3.0-next.6",
"@near-js/types": "1.0.0-next.6",
"@near-js/utils": "1.0.0-next.6"
"@near-js/crypto": "1.4.0-next.7",
"@near-js/keystores": "0.2.0-next.7",
"@near-js/accounts": "1.3.0-next.7",
"@near-js/transactions": "1.3.0-next.7",
"@near-js/signers": "0.2.0-next.7",
"@near-js/types": "1.0.0-next.7",
"@near-js/providers": "1.0.0-next.7",
"@near-js/utils": "1.0.0-next.7"
},

@@ -22,0 +22,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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