Skip to content

Commit

Permalink
couple small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Funkatronics committed Oct 18, 2023
1 parent 5389720 commit 0bf0b11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ private void handleAuthorize(@Nullable Object id, @Nullable Object params) throw
final String cluster = o.optString(ProtocolContract.PARAMETER_CLUSTER);
final String chainParam = o.optString(ProtocolContract.PARAMETER_CHAIN);
final String chain = !chainParam.isEmpty() ? chainParam
: !cluster.isEmpty() ? Identifier.clusterToChainIdentifier(cluster) : null;
: !cluster.isEmpty() ? Identifier.clusterToChainIdentifier(cluster)
: ProtocolContract.CHAIN_SOLANA_MAINNET;

final String authTokenParam = o.optString(ProtocolContract.PARAMETER_AUTH_TOKEN);
final String authToken = authTokenParam.isEmpty() ? null : authTokenParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public byte[] getAssociationPublicKey() {
}

@Override
@NonNull
public List<SessionProperties.ProtocolVersion> getAssociationProtocolVersions() {
return associationProtocolVersions;
}
Expand Down

0 comments on commit 0bf0b11

Please sign in to comment.