Skip to content

Commit 7c450d7

Browse files
authored
Update plutip-testing.md: use BigNum
1 parent 0576fea commit 7c450d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/plutip-testing.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ An example `Contract` with two actors using nested tuples:
183183
let
184184
distribution :: Array BigInt /\ Array BigInt
185185
distribution =
186-
[ BigInt.fromInt 1_000_000_000
187-
, BigInt.fromInt 2_000_000_000
186+
[ BigNum.fromInt 1_000_000_000
187+
, BigNum.fromInt 2_000_000_000
188188
] /\
189-
[ BigInt.fromInt 2_000_000_000 ]
189+
[ BigNum.fromInt 2_000_000_000 ]
190190
runPlutipContract config distribution \(alice /\ bob) -> do
191191
withKeyWallet alice do
192192
pure unit -- sign, balance, submit, etc.
@@ -201,9 +201,9 @@ let
201201
distribution :: Array (Array BigInt)
202202
distribution =
203203
-- wallet one: two UTxOs
204-
[ [ BigInt.fromInt 1_000_000_000, BigInt.fromInt 2_000_000_000]
204+
[ [ BigNum.fromInt 1_000_000_000, BigNum.fromInt 2_000_000_000]
205205
-- wallet two: one UTxO
206-
, [ BigInt.fromInt 2_000_000_000 ]
206+
, [ BigNum.fromInt 2_000_000_000 ]
207207
]
208208
runPlutipContract config distribution \wallets -> do
209209
traverse_ ( \wallet -> do
@@ -343,8 +343,8 @@ let
343343
$ privateKeyFromBytes =<< hexToRawBytes
344344
"633b1c4c4a075a538d37e062c1ed0706d3f0a94b013708e8f5ab0a0ca1df163d"
345345
aliceUtxos =
346-
[ BigInt.fromInt 2_000_000_000
347-
, BigInt.fromInt 2_000_000_000
346+
[ BigNum.fromInt 2_000_000_000
347+
, BigNum.fromInt 2_000_000_000
348348
]
349349
distribution = withStakeKey privateStakeKey aliceUtxos
350350
```

0 commit comments

Comments
 (0)