Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Explorer: Bump @solana/web3.js to v1.62.0 (#27769)
Browse files Browse the repository at this point in the history
* Explorer: Bump @solana/web3.js to v1.62.0

* Don't fetch unsupported transaction versions
  • Loading branch information
jstarry authored Sep 15, 2022
1 parent 07a83e0 commit 40d881d
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 126 deletions.
1 change: 0 additions & 1 deletion explorer/.env

This file was deleted.

185 changes: 73 additions & 112 deletions explorer/package-lock.json

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

2 changes: 1 addition & 1 deletion explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@sentry/react": "^7.6.0",
"@solana/buffer-layout": "^3.0.0",
"@solana/spl-token-registry": "^0.2.3736",
"@solana/web3.js": "^1.53.0",
"@solana/web3.js": "^1.62.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.2.3",
Expand Down
7 changes: 1 addition & 6 deletions explorer/src/providers/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ export async function fetchBlock(

try {
const connection = new Connection(url, "confirmed");
const block = await connection.getBlock(slot, {
maxSupportedTransactionVersion: process.env
.REACT_APP_MAX_SUPPORTED_TRANSACTION_VERSION
? parseInt(process.env.REACT_APP_MAX_SUPPORTED_TRANSACTION_VERSION, 10)
: 0,
});
const block = await connection.getBlock(slot);
if (block === null) {
data = {};
status = FetchStatus.Fetched;
Expand Down
7 changes: 1 addition & 6 deletions explorer/src/providers/transactions/raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ async function fetchRawTransaction(
) {
let fetchStatus;
try {
const response = await new Connection(url).getTransaction(signature, {
maxSupportedTransactionVersion: process.env
.REACT_APP_MAX_SUPPORTED_TRANSACTION_VERSION
? parseInt(process.env.REACT_APP_MAX_SUPPORTED_TRANSACTION_VERSION, 10)
: 0,
});
const response = await new Connection(url).getTransaction(signature);
fetchStatus = FetchStatus.Fetched;

let data: Details = { raw: null };
Expand Down

1 comment on commit 40d881d

@denispalab
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for explorer ready!

✅ Preview
https://explorer-jwv0reojt-solana-labs.vercel.app

Built with commit 40d881d.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.