Skip to content

Commit 58ae372

Browse files
address nits
1 parent 3f1a9c6 commit 58ae372

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/src/network-client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,8 +1237,7 @@ class AleoNetworkClient {
12371237
return;
12381238
}
12391239

1240-
const text = await res.text();
1241-
const data = parseJSON(text);
1240+
const data = parseJSON(await res.text());
12421241
if (data?.status === "accepted") {
12431242
clearInterval(interval);
12441243
return resolve(data);
@@ -1249,7 +1248,6 @@ class AleoNetworkClient {
12491248
return reject(new Error(
12501249
`Transaction ${transactionId} was rejected by the network. Ensure that the account paying the fee has enough credits and that the inputs to the on-chain function are valid.`));
12511250
}
1252-
// No status? keep polling
12531251
} catch (err) {
12541252
console.error("Polling error:", err);
12551253
}

0 commit comments

Comments
 (0)