@0xsequence/core
Advanced tools
Comparing version 0.0.0-20230302200348 to 0.0.0-20230303190934
{ | ||
"name": "@0xsequence/core", | ||
"version": "0.0.0-20230302200348", | ||
"version": "0.0.0-20230303190934", | ||
"description": "core primitives for interacting with the sequence wallet contracts", | ||
@@ -23,3 +23,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/core", | ||
"dependencies": { | ||
"@0xsequence/abi": "0.0.0-20230302200348" | ||
"@0xsequence/abi": "0.0.0-20230303190934" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
@@ -606,10 +606,10 @@ | ||
const signedPayload = (payload as { subdigest: string}).subdigest === undefined ? payload as base.SignedPayload : undefined | ||
const subdigest = signedPayload ? base.subdigestOf(signedPayload) : (payload as { subdigest: string }).subdigest | ||
// if payload chain id is 0 then it must be encoded with "no chain id" encoding | ||
// and if it is encoded with "no chain id" encoding then it must have chain id 0 | ||
if (signedPayload && ethers.constants.Zero.eq(signedPayload.chainId) !== (signature.type === SignatureType.NoChainIdDynamic)) { | ||
throw new Error(`Invalid signature type-chain id combination: ${signature.type}-${signedPayload.chainId.toString()}`) | ||
const isNoChainId = signature.type === SignatureType.NoChainIdDynamic | ||
if (isNoChainId && signedPayload) { | ||
signedPayload.chainId = 0 | ||
} | ||
const subdigest = signedPayload ? base.subdigestOf(signedPayload) : (payload as { subdigest: string }).subdigest | ||
if (!isUnrecoveredChainedSignature(signature)) { | ||
@@ -616,0 +616,0 @@ const tree = await recoverTopology(signature.decoded.tree, subdigest, provider) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
328176
8964
+ Added@0xsequence/abi@0.0.0-20230303190934(transitive)
- Removed@0xsequence/abi@0.0.0-20230302200348(transitive)