diff --git a/explorer/package-lock.json b/explorer/package-lock.json index 73a0b235e4..d07a2d0153 100644 --- a/explorer/package-lock.json +++ b/explorer/package-lock.json @@ -1269,9 +1269,9 @@ "integrity": "sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw==" }, "@solana/web3.js": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.40.0.tgz", - "integrity": "sha512-dNNSPU2igrjPIipGejoOOsCqHLvr6EmS4DyAkn4qh42pNkx75FBJsxvJprxyhOXqNg7ZDzH2vVw38Z8WRJSDdQ==", + "version": "0.41.2", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.41.2.tgz", + "integrity": "sha512-KHHnKNJLkleSFc8kj+SvhlchlBScQHUEoD/M8idzhL067sqa/EsPMnrcXMKwp8Ro4t2QiyFMmmqkVaZbTMhEWQ==", "requires": { "@babel/runtime": "^7.3.1", "bn.js": "^5.0.0", diff --git a/explorer/package.json b/explorer/package.json index bfcceb84cb..f67bc27b5a 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@solana/web3.js": "^0.40.0", + "@solana/web3.js": "^0.41.2", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", diff --git a/explorer/src/providers/transactions.tsx b/explorer/src/providers/transactions.tsx index 30e523e39f..ba3ad770b8 100644 --- a/explorer/src/providers/transactions.tsx +++ b/explorer/src/providers/transactions.tsx @@ -263,10 +263,10 @@ export async function checkTransactionStatus( confirmations = "max"; } - if ("Ok" in value.status) { - status = Status.Success; - } else { + if (value.err) { status = Status.Failure; + } else { + status = Status.Success; } } } catch (error) {