Skip to content

Commit

Permalink
Update plutip-testing.md: use BigNum
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky authored May 20, 2024
1 parent 0576fea commit 7c450d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/plutip-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ An example `Contract` with two actors using nested tuples:
let
distribution :: Array BigInt /\ Array BigInt
distribution =
[ BigInt.fromInt 1_000_000_000
, BigInt.fromInt 2_000_000_000
[ BigNum.fromInt 1_000_000_000
, BigNum.fromInt 2_000_000_000
] /\
[ BigInt.fromInt 2_000_000_000 ]
[ BigNum.fromInt 2_000_000_000 ]
runPlutipContract config distribution \(alice /\ bob) -> do
withKeyWallet alice do
pure unit -- sign, balance, submit, etc.
Expand All @@ -201,9 +201,9 @@ let
distribution :: Array (Array BigInt)
distribution =
-- wallet one: two UTxOs
[ [ BigInt.fromInt 1_000_000_000, BigInt.fromInt 2_000_000_000]
[ [ BigNum.fromInt 1_000_000_000, BigNum.fromInt 2_000_000_000]
-- wallet two: one UTxO
, [ BigInt.fromInt 2_000_000_000 ]
, [ BigNum.fromInt 2_000_000_000 ]
]
runPlutipContract config distribution \wallets -> do
traverse_ ( \wallet -> do
Expand Down Expand Up @@ -343,8 +343,8 @@ let
$ privateKeyFromBytes =<< hexToRawBytes
"633b1c4c4a075a538d37e062c1ed0706d3f0a94b013708e8f5ab0a0ca1df163d"
aliceUtxos =
[ BigInt.fromInt 2_000_000_000
, BigInt.fromInt 2_000_000_000
[ BigNum.fromInt 2_000_000_000
, BigNum.fromInt 2_000_000_000
]
distribution = withStakeKey privateStakeKey aliceUtxos
```
Expand Down

0 comments on commit 7c450d7

Please sign in to comment.