Skip to content

Commit

Permalink
fixing sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asoto-iov committed May 23, 2024
1 parent 3bc0a57 commit bf975c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
import co.rsk.mine.gas.provider.StableMinGasPriceProvider;

public class OnChainMinGasPriceProvider extends StableMinGasPriceProvider {
private final String address;

OnChainMinGasPriceProvider(MinGasPriceProvider fallBackProvider, OnChainMinGasPriceSystemConfig config) {
protected OnChainMinGasPriceProvider(MinGasPriceProvider fallBackProvider, OnChainMinGasPriceSystemConfig config) {
super(fallBackProvider);
this.address = config.getAddress();
}

@Override
Expand All @@ -20,4 +22,8 @@ public MinGasPriceProviderType getType() {
public Long getStableMinGasPrice() {
return null;
}

public String getAddress() {
return address;
}
}

0 comments on commit bf975c5

Please sign in to comment.