MCPcopy
hub / github.com/FuelLabs/fuels-ts / waitForResult

Function waitForResult

packages/account/src/utils/deployScriptOrPredicate.ts:79–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78 // Transaction id is unset until we have funded the create tx, which is dependent on the blob tx
79 const waitForResult = async () => {
80 try {
81 const blobTx = await deployer.sendTransaction(fundedBlobRequest);
82 const result = await blobTx.waitForResult();
83
84 if (result.status !== TransactionStatus.success) {
85 throw new Error();
86 }
87 } catch (err: unknown) {
88 throw new FuelError(ErrorCode.TRANSACTION_FAILED, 'Failed to deploy predicate chunk');
89 }
90
91 return loaderInstance;
92 };
93
94 return {
95 waitForResult,

Callers 15

launchTestNodeFunction · 0.85
raw-slice.test.tsFile · 0.85
edge-cases.test.tsFile · 0.85
vectors.test.tsFile · 0.85
network.test.tsFile · 0.85
min-gas.test.tsFile · 0.85
options.test.tsFile · 0.85
void.test.tsFile · 0.85

Calls 2

sendTransactionMethod · 0.65
waitForResultMethod · 0.45

Tested by 1

expectContractCallFunction · 0.68