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

@0xsequence/core

Package Overview
Dependencies
Maintainers
5
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/core - npm Package Compare versions

Comparing version 0.0.0-20230302200348 to 0.0.0-20230303190934

4

package.json
{
"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

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