Skip to content

Commit 050afaf

Browse files
committed
could fix e2e?
1 parent 55ed0b6 commit 050afaf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/api/src/extrinsic/submittable/BaseSubmittableExtrinsic.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ export abstract class BaseSubmittableExtrinsic extends Extrinsic implements ISub
108108
deferSend
109109
.untilFinalized() //--
110110
.then(deferFinalized()?.resolve)
111-
.catch(deferFinalized()?.reject);
111+
.catch((e) => {
112+
deferFinalized()?.reject(e);
113+
});
112114

113115
deferSend
114116
.untilBestChainBlockIncluded() //--
115117
.then(deferBestChainBlockIncluded()?.resolve)
116-
.catch(deferBestChainBlockIncluded()?.reject);
118+
.catch((e) => {
119+
deferBestChainBlockIncluded()?.reject(e);
120+
});
117121
})
118122
.catch(deferTx.reject);
119123

0 commit comments

Comments
 (0)