@mijoco/stx_helpers
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -211,7 +211,12 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const poxContract = getPoxContractFromCycle(cycle); | ||
let functionName = 'get-num-reward-set-pox-addresses'; | ||
if (poxContract === 'pox') { | ||
functionName = 'get-reward-set-size'; | ||
} | ||
const functionArgs = [`0x${base_1.hex.encode((0, transactions_1.serializeCV)((0, transactions_1.uintCV)(cycle)))}`]; | ||
const data = { | ||
contractAddress: poxContractId.split('.')[0], | ||
contractName: getPoxContractFromCycle(cycle), | ||
functionName: 'get-num-reward-set-pox-addresses', | ||
contractName: poxContract, | ||
functionName, | ||
functionArgs, | ||
@@ -218,0 +223,0 @@ }; |
{ | ||
"name": "@mijoco/stx_helpers", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
138614
3709