Skip to content

Commit

Permalink
Merge pull request #11 from cruxprotocol/fix/security-review
Browse files Browse the repository at this point in the history
Security review fixes
  • Loading branch information
mascot6699 authored Jan 17, 2020
2 parents 1fc81f3 + 6c37fc9 commit 9dceefd
Show file tree
Hide file tree
Showing 6 changed files with 123,626 additions and 22 deletions.
30 changes: 18 additions & 12 deletions app/src/main/java/com/example/liquid_test_2/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
import androidx.appcompat.app.AppCompatActivity;

import com.crux.sdk.CruxClient;
import com.crux.sdk.model.CruxAddress;
import com.crux.sdk.model.CruxClientError;
import com.crux.sdk.model.CruxClientInitConfig;
import com.crux.sdk.model.CruxClientResponseHandler;
import com.crux.sdk.model.CruxIDState;
import com.crux.sdk.model.CruxPutAddressMapSuccess;
import com.crux.sdk.model.*;
//import com.crux.sdk.model.CruxAddress;
//import com.crux.sdk.model.CruxClientError;
//import com.crux.sdk.model.CruxClientInitConfig;
//import com.crux.sdk.model.CruxClientResponseHandler;
//import com.crux.sdk.model.CruxIDState;
//import com.crux.sdk.model.CruxPutAddressMapSuccess;

import java.io.IOException;
import java.util.HashMap;
Expand Down Expand Up @@ -63,7 +64,8 @@ public void onResponse(Boolean successResponse) {

@Override
public void onErrorResponse(CruxClientError failureResponse) {
System.out.println(failureResponse);
System.err.println(failureResponse.errorCode);
System.err.println(failureResponse.errorMessage);
}
});

Expand All @@ -76,7 +78,8 @@ public void onResponse(Void successResponse) {

@Override
public void onErrorResponse(CruxClientError failureResponse) {
System.out.println(failureResponse);
System.err.println(failureResponse.errorCode);
System.err.println(failureResponse.errorMessage);
}
});

Expand All @@ -89,7 +92,8 @@ public void onResponse(CruxIDState successResponse) {

@Override
public void onErrorResponse(CruxClientError failureResponse) {
System.out.println(failureResponse);
System.err.println(failureResponse.errorCode);
System.err.println(failureResponse.errorMessage);
}
});

Expand All @@ -102,7 +106,8 @@ public void onResponse(HashMap<String, CruxAddress> successResponse) {

@Override
public void onErrorResponse(CruxClientError failureResponse) {
System.out.println(failureResponse);
System.err.println(failureResponse.errorCode);
System.err.println(failureResponse.errorMessage);
}
});

Expand Down Expand Up @@ -131,7 +136,8 @@ public void onResponse(CruxPutAddressMapSuccess successResponse) {

@Override
public void onErrorResponse(CruxClientError failureResponse) {
System.out.println(failureResponse);
System.err.println(failureResponse.errorCode);
System.err.println(failureResponse.errorMessage);
}
});

Expand All @@ -144,7 +150,7 @@ private HashMap<String, CruxAddress> getCurrencyMap() {
currencyMap.put("btc", new CruxAddress("1HX4KvtPdg9QUYwQE1kNqTAjmNaDG7w82V", null));
currencyMap.put("eth", new CruxAddress("0x0a2311594059b468c9897338b027c8782398b481", null));
currencyMap.put("tron", new CruxAddress("TG3iFaVvUs34SGpWq8RG9gnagDLTe1jdyz", null));
currencyMap.put("xrp", new CruxAddress("rpfKAA2Ezqoq5wWo3XENdLYdZ8YGziz48h", "5555"));
currencyMap.put("xrp", new CruxAddress("rpfKAA2Ezqoq5wWo3XENdLYdZ8YGziz48h", "7777"));
return currencyMap;
}

Expand Down
Loading

0 comments on commit 9dceefd

Please sign in to comment.