You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(abstract-eth): override getSignablePayload for ETH coin classes
Override `getSignablePayload` on `AbstractEthLikeCoin` to return the
keccak256 hash of the unsigned transaction (via `getMessageToSign(true)`)
rather than raw serialized bytes. This exposes the correct bytes AKM
needs for its external POST /sign endpoint.
Changes:
- Add `getSignablePayload(): Buffer` to `EthLikeTransactionData` interface
and implement it in `EthTransactionData` using `tx.getMessageToSign(true)`
- Add `get signablePayload(): Buffer` to the `Transaction` class, delegating
to `EthTransactionData.getSignablePayload()`
- Override `getSignablePayload(serializedTx)` in `AbstractEthLikeCoin`,
rebuilding via the transaction builder and returning `tx.signablePayload`
- Add unit tests covering Legacy and EIP1559 transaction types, and
empty-transaction error handling
Ticket: CGD-1083
0 commit comments