Commit ae71e08
authored
feat: add gas limit option to raw transactor (#311)
This pull request introduces support for specifying a gas limit when
generating a raw signer in the Chainlink deployments framework. The
changes add a flexible options pattern to the signer generator, allowing
users to set a custom gas limit if needed. Unit tests have been updated
to cover this new functionality.
**New feature: Gas limit support for raw signer generator**
- Added a `GeneratorOptions` struct and options pattern
(`GeneratorOption`, `WithGasLimit`) to `signer_generator.go`, enabling
configuration of gas limit for raw signers.
- Updated `TransactorFromRaw` to accept options and set the gas limit on
the generated transactor if provided.
[[1]](diffhunk://#diff-d969a93d4b9bf394c24013f13cd08f330806edf95bd4536a0e3b78935e38c636R27-R60)
[[2]](diffhunk://#diff-d969a93d4b9bf394c24013f13cd08f330806edf95bd4536a0e3b78935e38c636R74-R76)
**Testing improvements**
- Enhanced unit tests in `signer_generator_test.go` to verify correct
gas limit behavior, including cases with and without custom gas limits.
[[1]](diffhunk://#diff-1212d4f28859805b9036ae27dd95525343ab0ec9143d856d84980583985476b2L33-R51)
[[2]](diffhunk://#diff-1212d4f28859805b9036ae27dd95525343ab0ec9143d856d84980583985476b2L60-R82)
**Documentation**
- Added a changeset documenting the new gas limit option for the raw
signer generator.1 parent 11daf8d commit ae71e08
File tree
3 files changed
+57
-10
lines changed- .changeset
- chain/evm/provider
3 files changed
+57
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
29 | 52 | | |
30 | | - | |
| 53 | + | |
| 54 | + | |
31 | 55 | | |
32 | 56 | | |
33 | 57 | | |
34 | 58 | | |
35 | 59 | | |
36 | | - | |
| 60 | + | |
| 61 | + | |
37 | 62 | | |
38 | 63 | | |
39 | 64 | | |
| |||
47 | 72 | | |
48 | 73 | | |
49 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
50 | 78 | | |
51 | 79 | | |
52 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| |||
57 | 68 | | |
58 | 69 | | |
59 | 70 | | |
60 | | - | |
| 71 | + | |
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
| |||
0 commit comments