Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added further logs #79

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/timelock/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ func (tw *Worker) executeCallSchedule(ctx context.Context, c *contract.TimelockT

// if chainId is zksync-testnet or mainnet use custom gasPrice to enforce legacy tx
if chainID.Cmp(new(big.Int).SetUint64(chainselectors.ETHEREUM_MAINNET_ZKSYNC_1.EvmChainID)) == 0 || chainID.Cmp(new(big.Int).SetUint64(chainselectors.ETHEREUM_TESTNET_SEPOLIA_ZKSYNC_1.EvmChainID)) == 0 {
tw.logger.Info().Msgf("zkSync chain detected, using legacy tx")
txOpts.GasPrice = big.NewInt(1000000000) // gasPrice set to 1 gwei
}

tw.logger.Info().Msgf("Calling execute Batch...")
// Execute the tx's with all the computed calls.
// Predecessor and salt are the same for all the tx's.
tx, err := c.ExecuteBatch(
Expand Down