-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
KS-398 gas limit on tx meta #14214
Conversation
bf47569
to
c5e3145
Compare
@@ -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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
47583fb
to
c681ac6
Compare
… default limit configurable
3e55f72
to
e61bd9f
Compare
Quality Gate passedIssues Measures |
@@ -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 |
There was a problem hiding this comment.
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:
DefaultGasLimit = 400_000 # Default | |
GasLimitDefault = 400_000 # Default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
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.