Skip to content

Commit

Permalink
use contract.Client.from instead of just contract.Client (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesunikim authored Jan 27, 2025
1 parent 4e1974d commit 48377a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To create a contract client for the same contract as shown for `contract invoke`

```js
import { contract } from "@stellar/stellar-sdk";
const xlm = contract.Client({
const xlm = contract.Client.from({
contractId: "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
networkPassphrase: "Test SDF Network ; September 2015",
rpcUrl: "https://soroban-testnet.stellar.org",
Expand Down

0 comments on commit 48377a0

Please sign in to comment.