cardano-pab-client
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -74,5 +74,5 @@ "use strict"; | ||
const output = this.S.TransactionOutput.new(address, value); | ||
console.log("About to set data hash", scriptInput.datum, "in script output"); | ||
output.set_data_hash(this.S.DataHash.from_hex(scriptInput.datum)); | ||
console.log("DONE!"); | ||
if (scriptInput === null || scriptInput === void 0 ? void 0 : scriptInput.datum) { | ||
output.set_data_hash(this.S.DataHash.from_hex(scriptInput.datum)); | ||
} | ||
const scriptUTxO = this.S.TransactionUnspentOutput.new(txInput, this.S.TransactionOutput.new(address, value)); | ||
@@ -169,3 +169,3 @@ this.inputsUtxos.push(scriptUTxO); | ||
address: utxo.output().address().to_bech32(), | ||
datum: datumHash ? datumHash.to_hex() : "", | ||
datum: datumHash ? datumHash.to_hex() : null, | ||
index, | ||
@@ -172,0 +172,0 @@ id, |
@@ -70,3 +70,3 @@ /** | ||
assets: Assets; | ||
datum: string; | ||
datum: string | null; | ||
}; | ||
@@ -73,0 +73,0 @@ export declare type ExportTx = { |
@@ -55,9 +55,9 @@ "use strict"; | ||
try { | ||
estimation = yield axios_1.default.post(`${this.config.baseUrl}/estimate`, JSON.stringify(estimParam), { | ||
estimation = (yield axios_1.default.post(`${this.config.baseUrl}/estimate`, JSON.stringify(estimParam), { | ||
headers: { "Content-Type": "application/json" }, | ||
timeout: this.config.timeout, | ||
}); | ||
})).data; | ||
} | ||
catch (e) { | ||
return (0, common_1.fail)(e.toString()); | ||
return (0, common_1.fail)(String(e)); | ||
} | ||
@@ -64,0 +64,0 @@ if (estimation.Left) { |
{ | ||
"name": "cardano-pab-client", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A set of tools to develop frontends that interact with the Plutus Application Backend.", | ||
@@ -5,0 +5,0 @@ "author": "Plank", |
187069