org.fisco.bcos.web3j.tx.gas.StaticGasProvider Maven / Gradle / Ivy
package org.fisco.bcos.web3j.tx.gas;
import java.math.BigInteger;
public class StaticGasProvider implements ContractGasProvider {
private BigInteger gasPrice;
private BigInteger gasLimit;
public StaticGasProvider(BigInteger gasPrice, BigInteger gasLimit) {
this.gasPrice = gasPrice;
this.gasLimit = gasLimit;
}
@Override
public BigInteger getGasPrice(String contractFunc) {
return gasPrice;
}
@Override
public BigInteger getGasPrice() {
return gasPrice;
}
@Override
public BigInteger getGasLimit(String contractFunc) {
return gasLimit;
}
@Override
public BigInteger getGasLimit() {
return gasLimit;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy