Skip to content

Commit dbeda79

Browse files
committed
add type sigs
1 parent 4096fb6 commit dbeda79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/BotPlutusInterface/Balance.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,13 @@ balanceTxIO' balanceTxconstraints pabConf ownPkh unbalancedTx =
132132
(utxos, mcollateral) <- newEitherT $ utxosAndCollateralAtAddress @w balanceTxconstraints pabConf changeAddr
133133
privKeys <- newEitherT $ Files.readPrivateKeys @w pabConf
134134

135-
let utxoIndex = fmap Tx.toTxOut utxos <> unBalancedTxUtxoIndex unbalancedTx
135+
let utxoIndex :: Map TxOutRef TxOut
136+
utxoIndex = fmap Tx.toTxOut utxos <> unBalancedTxUtxoIndex unbalancedTx
137+
138+
requiredSigs :: [PubKeyHash]
136139
requiredSigs = map Ledger.unPaymentPubKeyHash $ Map.keys (unBalancedTxRequiredSignatories unbalancedTx)
140+
141+
txType :: BalanceTxConstraint a
137142
txType = knownConstraint @a Proxy
138143

139144
lift $ printBpiLog @w Debug $ viaShow utxoIndex

0 commit comments

Comments
 (0)