Commit 05523d9
fix: use TIP-1011 authorizeKey ABI on T3+ hardforks (#386)
* fix: use TIP-1011 authorizeKey ABI on T3+ hardforks
The AccountKeychain precompile changed the authorizeKey signature in
TIP-1011 to accept a KeyRestrictions struct instead of flat params.
Post-T3, the legacy selector is rejected.
Branch the cast send call in tempo-check.sh so pre-T3 uses the legacy
ABI and T3+ uses the new KeyRestrictions tuple.
Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
* fix: drop T1 check, only branch on T2
Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
* docs: update authorizeKey comment with T3 fields
Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
---------
Co-authored-by: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>1 parent a1b5756 commit 05523d9
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
| |||
0 commit comments