@@ -183,10 +183,10 @@ An example `Contract` with two actors using nested tuples:
183
183
let
184
184
distribution :: Array BigInt /\ Array BigInt
185
185
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
188
188
] /\
189
- [ BigInt .fromInt 2_000_000_000 ]
189
+ [ BigNum .fromInt 2_000_000_000 ]
190
190
runPlutipContract config distribution \(alice /\ bob) -> do
191
191
withKeyWallet alice do
192
192
pure unit -- sign, balance, submit, etc.
201
201
distribution :: Array (Array BigInt)
202
202
distribution =
203
203
-- 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]
205
205
-- wallet two: one UTxO
206
- , [ BigInt .fromInt 2_000_000_000 ]
206
+ , [ BigNum .fromInt 2_000_000_000 ]
207
207
]
208
208
runPlutipContract config distribution \wallets -> do
209
209
traverse_ ( \wallet -> do
343
343
$ privateKeyFromBytes =<< hexToRawBytes
344
344
"633b1c4c4a075a538d37e062c1ed0706d3f0a94b013708e8f5ab0a0ca1df163d"
345
345
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
348
348
]
349
349
distribution = withStakeKey privateStakeKey aliceUtxos
350
350
```
0 commit comments