Skip to content

Commit 8a904b9

Browse files
committed
Update new archethic version
1 parent 71e3c48 commit 8a904b9

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

commands/deploy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const handler = async function (argv) {
233233
const slippage = 1.01
234234

235235
const { fee: fee, rates: rates } = await archethic.transaction.getTransactionFee(refTx)
236-
const refTxFees = Math.ceil(fee * slippage)
236+
const refTxFees = Math.trunc(fee * slippage)
237237

238238
let filesTxFees = 0
239239

@@ -242,13 +242,13 @@ const handler = async function (argv) {
242242
return elt.tx
243243
})
244244

245-
filesTxFees = Math.ceil(filesTxFees * slippage)
245+
filesTxFees = Math.trunc(filesTxFees * slippage)
246246

247247
// Create transfer transactions
248248
const transferTx = archethic.transaction.new()
249249
.setType("transfer")
250-
.addUCOTransfer(firstRefAddress, fromBigInt(refTxFees))
251-
.addUCOTransfer(firstFilesAdress, fromBigInt(filesTxFees))
250+
.addUCOTransfer(firstRefAddress, refTxFees)
251+
.addUCOTransfer(firstFilesAdress, filesTxFees)
252252
.build(baseSeed, baseIndex)
253253
.originSign(originPrivateKey)
254254

package-lock.json

Lines changed: 22 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"homepage": "https://github.com/archethic-foundation/aeweb-cli#readme",
3030
"dependencies": {
31-
"archethic": "^1.12.1",
31+
"archethic": "^1.13.0",
3232
"chalk": "^5.0.1",
3333
"figlet": "^1.5.2",
3434
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)