From 7c6f2bf87807f745db96b45c304ec0ea1653af79 Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:33:46 +0530 Subject: [PATCH] fix(android): send and bridge ERC-20 tokens (#20924) This commit adds the missing "encodeFunctionCall" method in Android Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- .../main/java/im/status/ethereum/module/EncryptionUtils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/EncryptionUtils.java b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/EncryptionUtils.java index d7ca639593..66990f1503 100644 --- a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/EncryptionUtils.java +++ b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/EncryptionUtils.java @@ -62,6 +62,11 @@ public class EncryptionUtils extends ReactContextBaseJavaModule { return Statusgo.encodeTransfer(to, value); } + @ReactMethod(isBlockingSynchronousMethod = true) + public String encodeFunctionCall(final String method, final String paramsJSON) { + return Statusgo.encodeFunctionCall(method, paramsJSON); + } + @ReactMethod(isBlockingSynchronousMethod = true) public String decodeParameters(final String decodeParamJSON) { return Statusgo.decodeParameters(decodeParamJSON);