Skip to content

Commit

Permalink
Update tx
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Oct 25, 2024
1 parent a6c2cc6 commit f867074
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions docs/build/getting-started/fcl-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,15 @@ const sendTransaction = async () => {
cadence: `
import HelloWorld from 0xa1296b1e2e90ca5b
transaction(newGreeting: String) {
prepare(acct: AuthAccount) {}
execute {
HelloWorld.changeGreeting(newGreeting: newGreeting)
transaction(greeting: String) {
prepare(acct: &Account) {
log(acct.address)
}
execute {
HelloWorld.changeGreeting(newGreeting: greeting)
}
}
}
`,
args: (arg, t) => [arg(newGreeting, t.String)],
proposer: fcl.currentUser,
Expand Down Expand Up @@ -431,10 +434,13 @@ function App() {
cadence: `
import HelloWorld from 0xa1296b1e2e90ca5b
transaction(newGreeting: String) {
prepare(acct: AuthAccount) {}
transaction(greeting: String) {
prepare(acct: &Account) {
log(acct.address)
}
execute {
HelloWorld.changeGreeting(newGreeting: newGreeting)
HelloWorld.changeGreeting(newGreeting: greeting)
}
}
`,
Expand Down

0 comments on commit f867074

Please sign in to comment.