Skip to content

Commit

Permalink
fixed android build
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Sep 21, 2023
1 parent a4afd71 commit 5d2d454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ JNIEXPORT jobject JNICALL BEAM_JAVA_WALLET_INTERFACE(getTransactionParameters)(J
uint64_t bAmount = amount;
uint32_t bAsset = assetId;

walletModel->getAsync()->generateToken(TokenType::Offline, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), [&] (std::string token)
walletModel->getAsync()->generateToken(TokenType::Offline, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), false, [&] (std::string token)
{
JNIEnv* env = Android_JNI_getEnv();
jmethodID callback = env->GetStaticMethodID(WalletListenerClass, "onOfflineAddress", "(Ljava/lang/String;)V");
Expand All @@ -313,7 +313,7 @@ JNIEXPORT jobject JNICALL BEAM_JAVA_WALLET_INTERFACE(getTransactionParameters)(J
uint64_t bAmount = amount;
uint32_t bAsset = assetId;

walletModel->getAsync()->generateToken(TokenType::RegularNewStyle, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), [&] (std::string token)
walletModel->getAsync()->generateToken(TokenType::RegularNewStyle, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), false, [&] (std::string token)
{
JNIEnv* env = Android_JNI_getEnv();
jmethodID callback = env->GetStaticMethodID(WalletListenerClass, "onRegularAddress", "(Ljava/lang/String;)V");
Expand All @@ -330,7 +330,7 @@ JNIEXPORT jobject JNICALL BEAM_JAVA_WALLET_INTERFACE(getTransactionParameters)(J
uint64_t bAmount = amount;
uint32_t bAsset = assetId;

walletModel->getAsync()->generateToken(TokenType::MaxPrivacy, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), [&] (std::string token)
walletModel->getAsync()->generateToken(TokenType::MaxPrivacy, bAmount, beam::Asset::ID(bAsset), std::string(BEAM_LIB_VERSION), false, [&] (std::string token)
{
JNIEnv* env = Android_JNI_getEnv();
jmethodID callback = env->GetStaticMethodID(WalletListenerClass, "onMaxPrivacyAddress", "(Ljava/lang/String;)V");
Expand Down

0 comments on commit 5d2d454

Please sign in to comment.