Skip to content

Commit

Permalink
Fix for geth 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Feb 28, 2023
1 parent 1ed0031 commit da9f3e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 15 additions & 13 deletions core/packages/contracts/scripts/generateContractInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,21 @@ const run = async () => {
for (let transaction of deploymentInfo.transactions) {
if (transaction.transactionType === "CREATE") {
let contractName = transaction.contractName;
let contractInfo = { address: transaction.contractAddress };
let contractBuildingInfo = JSON.parse(
fs.readFileSync(
path.join(
BuildInfoDir,
contractName + ".sol",
contractName + ".json"
),
"utf8"
)
);
contractInfo.abi = contractBuildingInfo.abi;
contracts[contractName] = contractInfo;
if (contractName) {
let contractInfo = { address: transaction.contractAddress };
let contractBuildingInfo = JSON.parse(
fs.readFileSync(
path.join(
BuildInfoDir,
contractName + ".sol",
contractName + ".json"
),
"utf8"
)
);
contractInfo.abi = contractBuildingInfo.abi;
contracts[contractName] = contractInfo;
}
}
}
fs.writeFileSync(DestFile, JSON.stringify({ contracts }, null, 2), "utf8");
Expand Down
2 changes: 1 addition & 1 deletion core/packages/test/scripts/deploy-ethereum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ start_geth() {
geth --vmdebug --datadir "$ethereum_data_dir" --networkid 15 \
--http --http.api debug,personal,eth,net,web3,txpool,engine,miner --ws --ws.api debug,eth,net,web3 \
--rpc.allow-unprotected-txs --mine --miner.threads=1 \
--miner.etherbase=0x0000000000000000000000000000000000000000 \
--miner.etherbase=0xBe68fC2d8249eb60bfCf0e71D5A0d2F2e292c4eD \
--authrpc.addr="127.0.0.1" \
--http.addr="127.0.0.1" \
--allow-insecure-unlock \
Expand Down

0 comments on commit da9f3e2

Please sign in to comment.