New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@aresrpg/sui-checkpoint-reader

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aresrpg/sui-checkpoint-reader - npm Package Compare versions

Comparing version

to
4.1.1

{
"name": "@aresrpg/sui-checkpoint-reader",
"version": "4.1.0",
"version": "4.1.1",
"description": "",

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

@@ -55,9 +55,11 @@ import { setInterval, setTimeout } from 'timers/promises'

case 'vector':
if (rest.vector.struct) {
const nested = find_nested_bcs(rest.vector.struct)
if (
rest.vector.$kind === 'struct' ||
rest.vector.$kind === 'address' ||
rest.vector.$kind === 'vector'
) {
const nested = find_nested_bcs(rest.vector[rest.vector.$kind])
return nested ? bcs.vector(nested) : null
}
if (rest.vector.$kind === 'address') {
return bcs.vector(SuiAddress)
}
console.dir({ rest }, { depth: Infinity })
return bcs.vector(bcs[rest.vector.$kind.toLowerCase()]())

@@ -64,0 +66,0 @@ default: