Skip to content

Commit 1364c9c

Browse files
Merge pull request #3640 from tronprotocol/hotfix/modify_solidityFile
modify solidity File
2 parents 06f22a1 + 212da05 commit 1364c9c

File tree

4 files changed

+740
-729
lines changed

4 files changed

+740
-729
lines changed

framework/src/test/java/stest/tron/wallet/contract/scenario/ContractScenario006.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void deployFomo3D() {
7272
logger.info(Long.toString(PublicMethed.queryAccount(contract006Key, blockingStubFull)
7373
.getBalance()));
7474
Assert.assertTrue(PublicMethed.freezeBalanceGetEnergy(contract006Address, 100000000L,
75-
0, 1, contract006Key, blockingStubFull));
75+
3, 1, contract006Key, blockingStubFull));
7676
PublicMethed.waitProduceNextBlock(blockingStubFull);
7777
AccountResourceMessage accountResource = PublicMethed.getAccountResource(contract006Address,
7878
blockingStubFull);

framework/src/test/java/stest/tron/wallet/contract/scenario/ContractScenario007.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ public void deployErc721CardMigration() {
7575
logger.info("before balance is " + Long.toString(account.getBalance()));
7676
logger.info("before energy limit is " + Long.toString(energyLimit));
7777
logger.info("before energy usage is " + Long.toString(energyUsage));
78-
String filePath = "./src/test/resources/soliditycode/contractScenario007.sol";
7978
String contractName = "ERC721Token";
80-
HashMap retMap = PublicMethed.getBycodeAbi(filePath, contractName);
8179

82-
String code = retMap.get("byteCode").toString();
83-
String abi = retMap.get("abI").toString();
80+
String code = Configuration.getByPath("testng.conf")
81+
.getString("code.code_ContractScenario007_deployErc721CardMigration");
82+
String abi = Configuration.getByPath("testng.conf")
83+
.getString("abi.abi_ContractScenario007_deployErc721CardMigration");
8484
byte[] contractAddress = PublicMethed.deployContract(contractName, abi, code, "", maxFeeLimit,
8585
0L, 100, null, contract007Key, contract007Address, blockingStubFull);
8686
PublicMethed.waitProduceNextBlock(blockingStubFull);

framework/src/test/resources/soliditycode/contractScenario005.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ contract Crowdsale {
9292
}
9393

9494
if (fundingGoalReached && beneficiary == msg.sender) {
95-
if (address(beneficiary).send(amountRaised)) {
95+
if (payable(beneficiary).send(amountRaised)) {
9696
emit FundTransfer(beneficiary, amountRaised, false);
9797
} else {
9898
//If we fail to send the funds to beneficiary, unlock funders balance

0 commit comments

Comments
 (0)