diff --git a/dist/services/fee.js b/dist/services/fee.js index 276ce544..c69d088c 100644 --- a/dist/services/fee.js +++ b/dist/services/fee.js @@ -138,10 +138,10 @@ var getTransferOperation = function (walletInfo, utxoInputs, recieversInfo, asse utxoNumbers = utxoNumbers + BigInt(amount.toString()); ownerMemo = myMemoData ? ledger.OwnerMemo.from_json(myMemoData) : null; if (isTraceable) { - transferOp = transferOp.add_input_with_tracing(txoRef, assetRecord, ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), tracingPolicies, walletInfo.keypair, amount); + transferOp = transferOp.add_input_with_tracing(txoRef, assetRecord, ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), tracingPolicies, walletInfo.keypair, BigInt(amount.toString())); } else { - transferOp = transferOp.add_input_no_tracing(txoRef, assetRecord, ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), walletInfo.keypair, amount); + transferOp = transferOp.add_input_no_tracing(txoRef, assetRecord, ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), walletInfo.keypair, BigInt(amount.toString())); } return [2 /*return*/]; } @@ -155,10 +155,10 @@ var getTransferOperation = function (walletInfo, utxoInputs, recieversInfo, asse var blindIsAmount = assetBlindRules === null || assetBlindRules === void 0 ? void 0 : assetBlindRules.isAmountBlind; var blindIsType = assetBlindRules === null || assetBlindRules === void 0 ? void 0 : assetBlindRules.isTypeBlind; if (isTraceable) { - transferOp = transferOp.add_output_with_tracing(utxoNumbers, toPublickey, tracingPolicies, assetCode, !!blindIsAmount, !!blindIsType); + transferOp = transferOp.add_output_with_tracing(BigInt(utxoNumbers.toString()), toPublickey, tracingPolicies, assetCode, !!blindIsAmount, !!blindIsType); } else { - transferOp = transferOp.add_output_no_tracing(utxoNumbers, toPublickey, assetCode, !!blindIsAmount, !!blindIsType); + transferOp = transferOp.add_output_no_tracing(BigInt(utxoNumbers.toString()), toPublickey, assetCode, !!blindIsAmount, !!blindIsType); } }); if (!(inputAmount > utxoNumbers)) return [3 /*break*/, 11]; diff --git a/dist/services/fee.js.map b/dist/services/fee.js.map index 51699289..17c959e8 100644 --- a/dist/services/fee.js.map +++ b/dist/services/fee.js.map @@ -1 +1 @@ -{"version":3,"file":"fee.js","sourceRoot":"","sources":["../../src/services/fee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAA0C;AAC1C,wDAA4C;AAC5C,wDAAmD;AAEnD,2CAAuG;AAQhG,IAAM,uBAAuB,GAAG;;;;oBACtB,qBAAM,IAAA,yBAAS,GAAE,EAAA;;gBAA1B,MAAM,GAAG,SAAiB;gBAEhC,sBAAO,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,EAAC;;;KAC9C,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEK,IAAM,uBAAuB,GAAG,UAAO,KAA2B;;;;oBACxD,qBAAM,IAAA,yBAAS,GAAE,EAAA;;gBAA1B,MAAM,GAAG,SAAiB;gBAE1B,eAAe,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC;gBAEjG,sBAAO,eAAe,EAAC;;;KACxB,CAAC;AANW,QAAA,uBAAuB,2BAMlC;AAEK,IAAM,oBAAoB,GAAG,UAClC,UAAwB,EACxB,UAA0B,EAC1B,aAA4B,EAC5B,SAAiB;;;;;oBAEF,qBAAM,IAAA,yBAAS,GAAE,EAAA;;gBAA1B,MAAM,GAAG,SAAiB;gBAElB,qBAAM,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,EAAA;;gBAAjD,KAAK,GAAG,SAAyC;gBAEjD,WAAW,GAAG,CAAA,MAAA,KAAK,CAAC,UAAU,CAAC,gBAAgB,0CAAE,MAAM,IAAG,CAAC,CAAC;qBAI9D,WAAW,EAAX,wBAAW;;;;gBAEO,qBAAM,IAAA,+BAAuB,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oBAC1D,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC5D,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEO,qBAAM,IAAA,oBAAO,EAAC,UAAU,EAAE,IAAI,CAAC,EAAA;;gBAA9C,YAAY,GAAG,SAA+B;gBAE9C,YAAY,GAAG,IAAA,wBAAW,EAAC,SAAS,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;gBAErD,qBAAM,IAAA,0BAAa,EAAC,YAAY,CAAC,EAAA;;gBAAlD,cAAc,GAAG,SAAiC;gBAEvB,qBAAM,IAAA,4BAAoB,EACzD,UAAU,EACV,cAAc,EACd,aAAa,EACb,SAAS,CACV,EAAA;;gBALK,wBAAwB,GAAG,SAKhC;gBAED,sBAAO,wBAAwB,EAAC;;;KACjC,CAAC;AA/BW,QAAA,sBAAsB,0BA+BjC"} \ No newline at end of file diff --git a/src/services/fee.ts b/src/services/fee.ts index d26a89a0..b67c507f 100644 --- a/src/services/fee.ts +++ b/src/services/fee.ts @@ -76,7 +76,7 @@ export const getTransferOperation = async ( ownerMemo?.clone(), tracingPolicies, walletInfo.keypair, - amount, + BigInt(amount.toString()), ); } else { transferOp = transferOp.add_input_no_tracing( @@ -84,7 +84,7 @@ export const getTransferOperation = async ( assetRecord, ownerMemo?.clone(), walletInfo.keypair, - amount, + BigInt(amount.toString()), ); } }); @@ -98,7 +98,7 @@ export const getTransferOperation = async ( if (isTraceable) { transferOp = transferOp.add_output_with_tracing( - utxoNumbers, + BigInt(utxoNumbers.toString()), toPublickey, tracingPolicies, assetCode, @@ -107,7 +107,7 @@ export const getTransferOperation = async ( ); } else { transferOp = transferOp.add_output_no_tracing( - utxoNumbers, + BigInt(utxoNumbers.toString()), toPublickey, assetCode, !!blindIsAmount,