tezbridge-network
Advanced tools
Comparing version 1.0.28 to 1.0.29
{ | ||
"name": "tezbridge-network", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "The TezBridge network library for Tezos blockchain in JavaScript with Flow type system", | ||
@@ -5,0 +5,0 @@ "main": "Pt24m4xi/index.js", |
@@ -13,6 +13,6 @@ // @flow | ||
domain() { | ||
if (this.net_type === 'mainnet') | ||
domain(net_type : string) { | ||
if (net_type === 'mainnet') | ||
return 'https://api1.tzscan.io/v3' | ||
else if (this.net_type === 'alphanet') | ||
else if (net_type === 'alphanet') | ||
return 'https://api.alphanet.tzscan.io/v3' | ||
@@ -23,4 +23,4 @@ else | ||
async originated_contracts(address : string, spendable : boolean = true) { | ||
const url = this.domain() + `/operations/${address}?type=Origination` | ||
async originated_contracts(address : string, spendable : boolean = true, net_type? : string) { | ||
const url = this.domain(net_type || this.net_type) + `/operations/${address}?type=Origination` | ||
const operations = await this.fetch(url) | ||
@@ -27,0 +27,0 @@ const result = [] |
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
31106