Skip to content

Commit

Permalink
Merge pull request #236 from yusufidimaina9989/master
Browse files Browse the repository at this point in the history
Update scriptcontext.md
  • Loading branch information
yusufidimaina9989 authored Feb 16, 2024
2 parents 6d9c037 + e74a730 commit 50169cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to-write-a-contract/scriptcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ class DesignatedReceivers extends SmartContract {

@method()
public payout() {
const aliceOutput: ByteString = Utils.buildPublicKeyHashOutput(alice, 1000n)
const bobOutput: ByteString = Utils.buildPublicKeyHashOutput(bob, 1000n)
const aliceOutput: ByteString = Utils.buildPublicKeyHashOutput(this.alice, 1000n)
const bobOutput: ByteString = Utils.buildPublicKeyHashOutput(this.bob, 1000n)
let outputs = aliceOutput + bobOutput

// require a change output
Expand Down

0 comments on commit 50169cc

Please sign in to comment.