Skip to content

Commit

Permalink
fix js example
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Jun 12, 2024
1 parent ded775b commit 29adde2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ Please go to [the project homepage](https://github.com/stellar/js-stellar-sdk) o
// fee, and network passphrase are provided.
let builtTransaction = new TransactionBuilder(sourceAccount, {
fee: BASE_FEE,
networkPassphrase: Networks.FUTURENET,
networkPassphrase: Networks.TESTNET,
})
// The invocation of the `increment` function of our contract is added
// to the transaction.
.addOperation(
contract.call(
"increment",
nativeToScVal(
Address.fromString(
"GCWY3M4VRW4NXJRI7IVAU3CC7XOPN6PRBG6I5M7TAOQNKZXLT3KAH362",
),
),
nativeToScVal(Address.fromString(sourceKeypair.publicKey())),
nativeToScVal(5, { type: "u32" }),
),
)
Expand Down

0 comments on commit 29adde2

Please sign in to comment.