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

KS-398 gas limit on tx meta #14214

Merged
merged 3 commits into from
Aug 23, 2024
Merged

KS-398 gas limit on tx meta #14214

merged 3 commits into from
Aug 23, 2024

Conversation

ettec
Copy link
Collaborator

@ettec ettec commented Aug 23, 2024

https://smartcontract-it.atlassian.net/browse/KS-403

Change to allow the gas limit to be specified when submitting transactions to the evm chainwriter via the write target.

Also, secondary change to make the default gas limit configurable.

@ettec ettec force-pushed the ks-398-gas-limit-on-tx-meta branch 4 times, most recently from bf47569 to c5e3145 Compare August 23, 2024 15:04
@ettec ettec marked this pull request as ready for review August 23, 2024 15:04
@ettec ettec requested review from a team as code owners August 23, 2024 15:04
core/capabilities/targets/write_target.go Outdated Show resolved Hide resolved
core/chains/evm/config/toml/config.go Outdated Show resolved Hide resolved
@@ -15,7 +15,7 @@ import (
relayevmtypes "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/types"
)

func NewWriteTarget(ctx context.Context, relayer *Relayer, chain legacyevm.Chain, lggr logger.Logger) (*targets.WriteTarget, error) {
func NewWriteTarget(ctx context.Context, relayer *Relayer, chain legacyevm.Chain, defaultGasLimit uint64, lggr logger.Logger) (*targets.WriteTarget, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this limit still be overwritten per-workflow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes it can, by specifying it in the config object for the write target in the workflow spec

@ettec ettec force-pushed the ks-398-gas-limit-on-tx-meta branch 2 times, most recently from 47583fb to c681ac6 Compare August 23, 2024 15:49
bolekk
bolekk previously approved these changes Aug 23, 2024
@ettec ettec enabled auto-merge August 23, 2024 15:57
@bolekk bolekk dismissed stale reviews from cedric-cordenier and themself via cb3fdba August 23, 2024 18:19
bolekk
bolekk previously approved these changes Aug 23, 2024
@bolekk bolekk force-pushed the ks-398-gas-limit-on-tx-meta branch from 3e55f72 to e61bd9f Compare August 23, 2024 18:37
@@ -469,3 +469,5 @@ GasLimit = 5400000 # Default
FromAddress = '0x2a3e23c6f242F5345320814aC8a1b4E58707D292' # Example
# ForwarderAddress is the keystone forwarder contract address on chain.
ForwarderAddress = '0x2a3e23c6f242F5345320814aC8a1b4E58707D292' # Example
# DefaultGasLimit is the default gas limit for workflow transactions.
DefaultGasLimit = 400_000 # Default
Copy link
Contributor

Choose a reason for hiding this comment

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

Keeping modifiers as suffixes makes things a little easier to read and keeps things grouped together naturally when sorted:

Suggested change
DefaultGasLimit = 400_000 # Default
GasLimitDefault = 400_000 # Default

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's mention the new config field here

@ettec ettec added this pull request to the merge queue Aug 23, 2024
Merged via the queue into develop with commit 32a2ccd Aug 23, 2024
133 of 135 checks passed
@ettec ettec deleted the ks-398-gas-limit-on-tx-meta branch August 23, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants