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>
This commit is contained in:
Mohamed Javid 2024-07-31 18:33:46 +05:30 committed by Icaro Motta
parent 29203e57ec
commit 7c6f2bf878
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ public class EncryptionUtils extends ReactContextBaseJavaModule {
return Statusgo.encodeTransfer(to, value); 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) @ReactMethod(isBlockingSynchronousMethod = true)
public String decodeParameters(final String decodeParamJSON) { public String decodeParameters(final String decodeParamJSON) {
return Statusgo.decodeParameters(decodeParamJSON); return Statusgo.decodeParameters(decodeParamJSON);