Skip to content

Commit

Permalink
1.if remark len is 0 let remark equals space
Browse files Browse the repository at this point in the history
  • Loading branch information
BillInUK committed Mar 8, 2020
1 parent ad2c644 commit c4bbeb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/cpp/libxdag_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ JNIEXPORT jint JNICALL Java_io_xdag_xdagwallet_wrapper_XdagWrapper_XdagXfer(
isCopy = JNI_TRUE;
const char* remark = env->GetStringUTFChars(sendRemark,&isCopy);

if(remark != NULL && strlen(remark) == 0){
remark = " ";
}

LOGI("xdag xfer coins recv address %s recv amount %s remark %s ",address,amount,remark);
xdag_send_coin(amount,address,remark);

Expand Down

0 comments on commit c4bbeb5

Please sign in to comment.