@near-js/wallet-account
Advanced tools
Comparing version 1.3.0-next.6 to 1.3.0-next.7
@@ -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) { |
{ | ||
"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
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
78046
1533
+ Added@near-js/accounts@1.3.0-next.7(transitive)
+ Added@near-js/crypto@1.4.0-next.7(transitive)
+ Added@near-js/keystores@0.2.0-next.7(transitive)
+ Added@near-js/providers@1.0.0-next.7(transitive)
+ Added@near-js/signers@0.2.0-next.7(transitive)
+ Added@near-js/transactions@1.3.0-next.7(transitive)
+ Added@near-js/types@1.0.0-next.7(transitive)
+ Added@near-js/utils@1.0.0-next.7(transitive)
- Removed@near-js/accounts@1.3.0-next.6(transitive)
- Removed@near-js/crypto@1.4.0-next.6(transitive)
- Removed@near-js/keystores@0.2.0-next.6(transitive)
- Removed@near-js/providers@1.0.0-next.6(transitive)
- Removed@near-js/signers@0.2.0-next.6(transitive)
- Removed@near-js/transactions@1.3.0-next.6(transitive)
- Removed@near-js/types@1.0.0-next.6(transitive)
- Removed@near-js/utils@1.0.0-next.6(transitive)
Updated@near-js/crypto@1.4.0-next.7
Updated@near-js/types@1.0.0-next.7
Updated@near-js/utils@1.0.0-next.7