From 31555757946bc36cf7d3be02049c34f52261f013 Mon Sep 17 00:00:00 2001 From: sagar sapkota Date: Fri, 22 Nov 2024 13:47:40 +0545 Subject: [PATCH] NetworkAddress missed - fixed --- .../src/main/java/network/balanced/score/core/dex/DexImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java b/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java index 79ceee74e..2e101bb50 100644 --- a/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java +++ b/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java @@ -149,7 +149,7 @@ public void xTokenFallback(String _from, BigInteger _value, byte[] _data) { if (params.get("address") != null) { to = params.get("address").asString(); } - deposit(token, NetworkAddress.valueOf(to), _value); + deposit(token, NetworkAddress.valueOf(to, NATIVE_NID), _value); } else { // If no supported method was sent, revert the transaction Context.revert(100, TAG + ": Unsupported method supplied");