Skip to content

Commit f08a0b3

Browse files
committed
simplify foundry.toml and linting
1 parent 7f13fa8 commit f08a0b3

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

contract_manager/scripts/deploy_evm_lazer_contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export async function main() {
323323
console.log(`\n✅ Contract deployed at: ${deployedAddress}`);
324324
console.log(`Trusted signer updated: ${argv["update-signer"]}`);
325325
console.log(
326-
`Expires at: ${new Date(argv["expires-at"]! * 1000).toISOString()}`,
326+
`Expires at: ${new Date((argv["expires-at"] ?? 0) * 1000).toISOString()}`,
327327
);
328328
} else if (argv.deploy) {
329329
console.log(`Contract deployed at ${deployedAddress}`);

target_chains/ethereum/contracts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cp .env.test .env
5757
# Start a local node
5858
anvil
5959

60-
# Anvil shows a list of default accounts and their corresponding private keys.
60+
# Anvil shows a list of default accounts and their corresponding private keys.
6161
# Fetch any one of the private key from the anvil terminal and update in .env file.
6262

6363
# In another terminal, deploy the contracts

target_chains/ethereum/contracts/foundry.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ ignored_warnings_from = [
2121
]
2222

2323
[rpc_endpoints]
24-
rpc_url="${RPC_URL}"
24+
testnet="${RPC_URL}"
2525
local = "http://localhost:8545"
2626

27-
[etherscan]
28-
etherscan_api_key = { key = "${ETHERSCAN_API_KEY}" }
27+
etherscan_api_key="${ETHERSCAN_API_KEY}"

target_chains/ethereum/contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"setup": "npm run setup-foundry && npm run install-forge-deps",
1616
"build": "forge build",
1717
"test": "forge test",
18-
"deploy": "forge script script/Deploy.s.sol --rpc-url rpc_url --broadcast",
19-
"deploy-and-verify": "forge script script/Deploy.s.sol --rpc-url rpc_url --broadcast --verify",
18+
"deploy": "forge script script/Deploy.s.sol --rpc-url testnet --broadcast",
19+
"deploy-and-verify": "forge script script/Deploy.s.sol --rpc-url testnet --broadcast --verify",
2020
"deploy-local": "ETHERSCAN_API_KEY= forge script script/Deploy.s.sol --rpc-url local --broadcast",
2121
"receiver-submit-guardian-sets": "forge script script/ReceiverSubmitGuardianSetUpgrades.s.sol --rpc-url $RPC_URL --broadcast",
2222
"create-governance-vaa": "forge script script/CreateLocalnetGovernanceVaa.s.sol",

0 commit comments

Comments
 (0)