Skip to content

Commit

Permalink
Added Patch to resolve inconsistencies issue of rpc_node
Browse files Browse the repository at this point in the history
  • Loading branch information
vpanchal-supra committed Oct 21, 2024
1 parent 447c5bb commit 8590148
Show file tree
Hide file tree
Showing 22 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion dist/browser/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/index.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14440,7 +14440,7 @@ var SupraClient = class _SupraClient {
if (resData.data == null) {
return null;
}
if (resData.data.status === "Pending" /* Pending */ || resData.data.output === null || resData.data.header) {
if (resData.data.status === "Pending" /* Pending */ || resData.data.output === null || resData.data.header === null) {
return {
txHash: transactionHash,
sender: resData.data.header.sender.Move,
Expand Down
2 changes: 1 addition & 1 deletion dist/node/index.mjs.map

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions docs/classes/SupraClient.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/TransactionStatus.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/TxTypeForTransactionInsights.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/AccountInfo.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/AccountResources.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/CoinChange.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/CoinInfo.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/FaucetRequestResponse.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/FunctionTypeArgs.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/SendTxPayload.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/TransactionDetail.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/TransactionInsights.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/TransactionResponse.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ export class SupraClient {
return null;
}

// Added Patch to resolve inconsistencies issue of `rpc_node`
// Added Patch to resolve inconsistencies issue of `rpc_node`
if (
resData.data.status === TransactionStatus.Pending ||
resData.data.output === null ||
resData.data.header
resData.data.header === null
) {
return {
txHash: transactionHash,
Expand Down

0 comments on commit 8590148

Please sign in to comment.