Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fix processTransactionWithAddressLookups usage
  • Loading branch information
taobig committed Apr 17, 2024
1 parent 0b9c4d7 commit a81ad56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a81ad56

Please sign in to comment.