Skip to content

Commit 6b8f44e

Browse files
authored
Merge branch 'master' into ehi_v3_try
2 parents d70d73f + 66c4bac commit 6b8f44e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/main/java/com/arnAAVE/java_sdk/Staking/StakingAccess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class StakingAccess {
1212
private final IStakedToken iStakedToken;
1313

1414
public StakingAccess(AaveConnect connection, String iStakedTokenAddress, String gasFee, String gasLimit) {
15-
ContractGasProvider provider = new StaticGasProvider(new BigInteger(gasFee),new BigInteger(gasLimit));
16-
this.iStakedToken = new IStakedToken(iStakedTokenAddress, connection.getWeb3j(), connection.getCredentials(), provider);
15+
ContractGasProvider provider = new StaticGasProvider(new BigInteger(gasFee), new BigInteger(gasLimit));
16+
this.iStakedToken = new IStakedToken(iStakedTokenAddress, connection.getWeb3j(), connection.getCredentials(),provider);
1717
}
1818

1919
public String staked_token() throws Exception {

src/test/java/com/arnAAVE/java_sdk/Staking/StakingAccessTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
import org.junit.jupiter.api.Test;
77
import org.springframework.beans.factory.annotation.Autowired;
88
import org.springframework.boot.test.context.SpringBootTest;
9+
import org.web3j.crypto.Credentials;
10+
import org.web3j.protocol.Web3j;
911
import org.web3j.protocol.core.RemoteFunctionCall;
1012
import org.web3j.protocol.core.methods.response.TransactionReceipt;
13+
import org.web3j.protocol.http.HttpService;
1114

1215
import java.math.BigInteger;
1316

@@ -16,8 +19,9 @@
1619
@SpringBootTest
1720
@Slf4j
1821
class StakingAccessTest {
19-
AaveConnect connection = new AaveConnect("1238370fb9507a697d2744d9c511061a0c3cc284eba1af1fa7b24854a9084219","https://goerli.infura.io/v3/4b08a7529c7a4a24af5d26ce1fe16aca");
20-
StakingAccess stakingAccess = new StakingAccess(connection,"","2000000","3000000");
22+
23+
AaveConnect connection = new AaveConnect("1238370fb9507a697d2744d9c511061a0c3cc284eba1af1fa7b24854a9084219", "https://goerli.infura.io/v3/b8c7cedb8701445bb9210f4731e42c0a");
24+
StakingAccess stakingAccess;
2125

2226
@BeforeEach
2327
void setUp() {

0 commit comments

Comments
 (0)