Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
finalstatics committed Aug 20, 2021
1 parent 6d3be89 commit 0c27713
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void updateVerifyingContract(String verifyingContract) {
String addressSymbol = viewModel.recognizeAddress(verifyingContract);
if (addressSymbol != null) {
verifyingContract = verifyingContract + String.format(" (%s)", addressSymbol);
} else if (GnosisHandler.gnosisContractAddresses.contains(verifyingContract)) {
} else if (GnosisHandler.gnosisContractAddresses.contains(verifyingContract.toLowerCase())) {
verifyingContract += " (GnosisSafeProxy)";
} else {
// verifyingContract = verifyingContract + String.format(" [%s]", "Unknown Address");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private void processAndUpdateTo() {
String addressSymbol = viewModel.recognizeAddress(to);
if (!TextUtils.isEmpty(addressSymbol)) {
to = to + String.format(" (%s)", addressSymbol);
} else if (GnosisHandler.gnosisContractAddresses.contains(to)) {
} else if (GnosisHandler.gnosisContractAddresses.contains(to.toLowerCase())) {
to += " (GnosisSafeProxy)";
} else {
// to = to + String.format(" [%s]", "Unknown Address");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private void processAndUpdateTo() {
String addressSymbol = viewModel.recognizeAddress(to);
if (!TextUtils.isEmpty(addressSymbol)) {
to = to + String.format(" (%s)", addressSymbol);
} else if (GnosisHandler.gnosisContractAddresses.contains(to)) {
} else if (GnosisHandler.gnosisContractAddresses.contains(to.toLowerCase())) {
to += " (GnosisSafeProxy)";
} else {
// to = to + String.format(" [%s]", "Unknown Address");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ABIReader.DecodedFunctionCall decodeCall(String data, Contract contract,
ABIReader abiReader = new ABIReader();
ABIReader.DecodedFunctionCall call = abiReader.decodeCall(data, contract, address);
if (call != null) {
gnosisContractAddresses.add(address);
gnosisContractAddresses.add(address.toLowerCase());
}
return call;
}
Expand Down

0 comments on commit 0c27713

Please sign in to comment.