Skip to content

Conversation

TucksonDev
Copy link
Contributor

This PR builds on top of #114 , adding the verification of the deployed contracts

@cla-bot cla-bot bot added the cla-signed label Aug 21, 2025
let verificationQueue: VerificationRequest[] = []

// Helper function to encode constructor arguments based on their types
function abiEncodeConstructorArguments(args: any[]): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crafted this function to avoid having to pass the types of arguments for verification

/*
if (verify) {
await verifyContract(
queueContractForVerification(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verification of contracts is queued to separate it from deployment (mainly for having cleaner logs)

L1GatewayRouter:
'contracts/tokenbridge/ethereum/gateway/L1GatewayRouter.sol:L1GatewayRouter',
standardGatewayTemplate:
L1ERC20Gateway:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the keys of this object to use directly the name of the contract instead of custom keys (since these are not used anymore in the calling function)

useCreate2
)
await initializeContract(parentGatewayRouterTemplate, [
await initializeContract('L1GatewayRouter', parentGatewayRouterTemplate, [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the name of the contract for logging mainly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant