Skip to content

Commit

Permalink
Update scriptcontext.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufidimaina9989 authored Feb 16, 2024
1 parent 704a3df commit e74a730
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 e74a730

Please sign in to comment.