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

@helios-lang/ledger

Package Overview
Dependencies
Maintainers
0
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/ledger - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

2

package.json
{
"name": "@helios-lang/ledger",
"version": "0.6.5",
"version": "0.6.6",
"description": "Latest ledger types (eg. for building transactions)",

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

@@ -172,2 +172,13 @@ import {

/**
* Returns all the non-native scripts (includes the reference scripts)
* @type {(UplcProgramV1 | UplcProgramV2)[]}
*/
get allNonNativeScripts() {
return /** @type {(UplcProgramV1 | UplcProgramV2)[]} */ ([])
.concat(this.v1Scripts)
.concat(this.v2Scripts)
.concat(this.v2RefScripts)
}
/**
* Used to calculate the correct min fee

@@ -280,6 +291,7 @@ * @param {number} n - number of dummy signatures to add

/**
* Used to determine of Tx needs collateral
* @returns {boolean}
*/
isSmart() {
return this.allScripts.length > 0
return this.allNonNativeScripts.length > 0
}

@@ -286,0 +298,0 @@

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