From 28f36b64ce76a11724d87d4fe67c87e62a654f9c Mon Sep 17 00:00:00 2001 From: taobig Date: Fri, 11 Oct 2024 00:58:28 +0800 Subject: [PATCH] Update README.md (#195) fix processTransactionWithAddressLookups usage --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c5d34c6..2382e4f1 100644 --- a/README.md +++ b/README.md @@ -194,10 +194,10 @@ func main() { if err != nil { panic(err) } - processTransactionWithAddressLookups(*parsed, rpcClient) + processTransactionWithAddressLookups(parsed, rpcClient) } -func processTransactionWithAddressLookups(txx solana.Transaction, rpcClient *rpc.Client) { +func processTransactionWithAddressLookups(txx *solana.Transaction, rpcClient *rpc.Client) { if !txx.Message.IsVersioned() { fmt.Println("tx is not versioned; only versioned transactions can contain lookups") return