Commit 0c15011
committed
fix(solana/gmp): use abi_encode for EVM-compatible struct encoding
abi_encode_params encodes struct fields as flat top-level parameters,
omitting the leading 32-byte offset that Solidity's abi.decode(data,
(StructType)) expects. Switch to abi_encode which wraps the struct in
a 1-tuple, matching the format produced by Solidity's abi.encode.1 parent 5a58e61 commit 0c15011
File tree
1 file changed
+3
-4
lines changed- programs/solana/programs/ics27-gmp/src/instructions
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
711 | | - | |
712 | | - | |
| 710 | + | |
| 711 | + | |
713 | 712 | | |
714 | 713 | | |
715 | 714 | | |
| |||
0 commit comments