Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

refactor deprecated methods #49

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const run = async () => {

const authToken = await authenticate(user)

const { blockhash: recentBlockhash } = await cluster.getRecentBlockhash()
const { blockhash: recentBlockhash } = await cluster.getLatestBlockhash()

const MAX_PARALLEL_REQUESTS = 16
let parallelRequests = 0
Expand Down Expand Up @@ -193,7 +193,7 @@ const fund = async (cluster) => {
const rent = 890880 // 2439
const totalCost = transferSum + signatureCostSum + rent

const { blockhash: recentBlockhash } = await cluster.getRecentBlockhash()
const { blockhash: recentBlockhash } = await cluster.getLatestBlockhash()

const tx = new web3.Transaction({
recentBlockhash
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "demo",
"version": "1.0.0",
"dependencies": {
"@solana/web3.js": "^1.44.1",
"@solana/web3.js": "^1.95.3",
"bs58": "^5.0.0",
"cors": "^2.8.5",
"minimist": "^1.2.6",
Expand Down
Loading
Loading