@jetthai/cuora 1.1.179 → 1.1.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.180](https://github.com/jetthai/cuora-module/compare/v1.1.179...v1.1.180) (2023-09-19)
6
+
5
7
  ### [1.1.179](https://github.com/jetthai/cuora-module/compare/v1.1.178...v1.1.179) (2023-09-19)
6
8
 
7
9
  ### [1.1.178](https://github.com/jetthai/cuora-module/compare/v1.1.177...v1.1.178) (2023-09-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.179",
3
+ "version": "1.1.180",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -248,7 +248,7 @@ export default function (request, context) {
248
248
  fetchCalculation: async (context, event) => {
249
249
  const { selectedCrypto, selectedAmount, promotion } = context
250
250
  return await request.send(
251
- payment.getDepositExpectedResult({
251
+ payment.getCryptoDepositExpectedResult({
252
252
  method: selectedCrypto.method,
253
253
  amount: selectedAmount,
254
254
  cryptoCurrency: selectedCrypto.channel,
@@ -257,11 +257,11 @@ export default function (request, context) {
257
257
  )
258
258
  },
259
259
  submitDeposit: async (context, event) => {
260
- const { selectedCrypto, selectedNetwork, calculation, sourceAddress, promotion } = context
260
+ const { selectedCrypto, selectedNetwork, selectedAmount, sourceAddress, promotion } = context
261
261
  return await request.send(
262
262
  payment.submitDepositTransactionCrypto({
263
263
  method: selectedCrypto.method,
264
- amount: calculation.actualAmount,
264
+ amount: selectedAmount,
265
265
  cryptoCurrency: selectedCrypto.channel,
266
266
  cryptoNetwork: selectedNetwork.value,
267
267
  sourceAddress: sourceAddress,