Skip to content

Commit

Permalink
Merge pull request #79 from smartcontractkit/sish/add-logs
Browse files Browse the repository at this point in the history
Added further logs
  • Loading branch information
stackman27 authored Jul 1, 2024
2 parents 3cf83b7 + 990b619 commit 2b828fa
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 2b828fa

Please sign in to comment.