Commit eceab53
committed
core/types: change parameter order of SignAuth and rename
The signing key should be passed first, because it is usually in a variable,
while the authorization will often be a literal.
Compare
a, err := types.SignAuthorization(types.SetCodeAuthorization{
ChainID: getChainID(),
Nonce: getNonce(),
}, key)
with
a, err := types.SignAuthorization(key, types.SetCodeAuthorization{
ChainID: getChainID(),
Nonce: getNonce(),
})1 parent e243812 commit eceab53
2 files changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4273 | 4273 | | |
4274 | 4274 | | |
4275 | 4275 | | |
4276 | | - | |
| 4276 | + | |
4277 | 4277 | | |
4278 | 4278 | | |
4279 | 4279 | | |
4280 | | - | |
4281 | | - | |
| 4280 | + | |
| 4281 | + | |
4282 | 4282 | | |
4283 | 4283 | | |
4284 | 4284 | | |
4285 | | - | |
| 4285 | + | |
4286 | 4286 | | |
4287 | 4287 | | |
4288 | 4288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 97 | | |
104 | 98 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
111 | | - | |
| 105 | + | |
112 | 106 | | |
113 | 107 | | |
114 | 108 | | |
| |||
0 commit comments