@pushchain/core 6.0.14 → 6.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -609,6 +609,7 @@ function transformToUniversalTxResponse(ctx_1, tx_1) {
|
|
|
609
609
|
const universalTxResponse = {
|
|
610
610
|
// 1. Identity
|
|
611
611
|
hash: tx.hash,
|
|
612
|
+
finalTxHash: tx.hash, // Push tx hash; .wait()'s receipt refines it for R2/R3
|
|
612
613
|
origin,
|
|
613
614
|
// 2. Block Info
|
|
614
615
|
blockNumber: tx.blockNumber || BigInt(0),
|
|
@@ -159,6 +159,15 @@ export type ExecuteParams = {
|
|
|
159
159
|
*/
|
|
160
160
|
export interface UniversalTxResponse {
|
|
161
161
|
hash: string;
|
|
162
|
+
/**
|
|
163
|
+
* Terminal tx hash for this transaction. On the RESPONSE (returned by
|
|
164
|
+
* sendTransaction/prepareTransaction, before any cross-chain leg lands) this
|
|
165
|
+
* equals `hash` — the Push Chain tx. After `.wait()`, the receipt's
|
|
166
|
+
* `finalTxHash` resolves to the external/inbound leg for R2/R3
|
|
167
|
+
* (`pushInboundTxHash ?? externalTxHash ?? hash`). Provided so callers can
|
|
168
|
+
* read one terminal hash off either the response or the receipt.
|
|
169
|
+
*/
|
|
170
|
+
finalTxHash?: string;
|
|
162
171
|
origin: string;
|
|
163
172
|
blockNumber: bigint;
|
|
164
173
|
blockHash: string;
|