Skip to content

Commit 5b205d1

Browse files
committed
compiler version as param
1 parent a513469 commit 5b205d1

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

framework/components/blockchain/tron.go

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,7 @@ type Accounts struct {
2121
}
2222

2323
const (
24-
AccountsFile = `{
25-
"hdPath": "m/44'/195'/0'/0/",
26-
"mnemonic": "resemble birth wool happy sun burger fatal trumpet globe purity health ritual",
27-
"privateKeys": [
28-
"932a39242805a1b1095638027f26af9664d1d5bf8ab3b7527ee75e7efb2946dd",
29-
"1c17c9c049d36cde7e5ea99df6c86e0474b04f0e258ab619a1e674f397a17152",
30-
"458130a239671674746582184711a6f8d633355df1a491b9f3b323576134c2e9",
31-
"2676fd1427968e07feaa9aff967d4ba7607c5497c499968c098d0517cd75cfbb",
32-
"d26b24a691ff2b03ee6ab65bf164def216f73574996b9ca6299c43a9a63767ac",
33-
"55df6adf3d081944dbe4688205d94f236fb4427ac44f3a286a96d47db0860667",
34-
"8a9a60ddd722a40753c2a38edd6b6fa38e806d681c9b08a520ba4912e62b6458",
35-
"75eb182fb623acf5e53d9885c4e8578f2530533a96c753481cc4277ecc6022de",
36-
"6c4b22b1d9d68ef7a8ecd151cd4ffdd4ecc2a7b3a3f8a9f9f9bbdbcef6671f10",
37-
"e578d66453cb41b6c923b9caa91c375a0545eeb171ccafc60b46fa834ce5c200"
38-
],
39-
"more": []
40-
}
41-
`
42-
DefaultTronPort = "9090"
43-
DefaultTronSolidityPort = "8091"
24+
DefaultTronPort = "9090"
4425
)
4526

4627
func defaultTron(in *Input) {

framework/components/blockchain/verify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
)
77

88
// VerifyContract wraps the forge verify-contract command.
9-
func VerifyContract(out *Output, address, foundryDir, contractFile, contractName string) error {
9+
func VerifyContract(out *Output, address, foundryDir, contractFile, contractName, compilerVersion string) error {
1010
args := []string{
1111
"verify-contract",
1212
"--rpc-url", out.Nodes[0].HostHTTPUrl,
1313
"--chain-id",
1414
out.ChainID,
15-
"--compiler-version=0.8.24",
15+
fmt.Sprintf("--compiler-version=%s", compilerVersion),
1616
address,
1717
fmt.Sprintf("%s:%s", contractFile, contractName),
1818
"--verifier", "blockscout",

framework/examples/myproject/verify_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func TestVerify(t *testing.T) {
3939
"example_components/onchain",
4040
"src/Counter.sol",
4141
"Counter",
42+
"0.8.13",
4243
)
4344
require.NoError(t, err)
4445
})

0 commit comments

Comments
 (0)