Skip to content

Commit 66a50cf

Browse files
committed
handle plutus correctly
1 parent f74ad71 commit 66a50cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cardano-db-sync/src/Cardano/DbSync/Config.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ plutusWhitelistCheckTxOut :: SyncEnv -> [Generic.TxOut] -> Bool
100100
plutusWhitelistCheckTxOut syncEnv txOuts = do
101101
let iopts = soptInsertOptions $ envOptions syncEnv
102102
case ioPlutusExtra iopts of
103+
PlutusEnable -> True
104+
PlutusDisable -> False
103105
PlutusWhitelistScripts whitelist -> do
104106
-- we map over our txOuts and check if txOutAddress OR txOutScript are in the whitelist
105107
let whitelistCheck =
@@ -117,4 +119,3 @@ plutusWhitelistCheckTxOut syncEnv txOuts = do
117119
)
118120
<$> txOuts
119121
any isJust whitelistCheck
120-
_ -> False

0 commit comments

Comments
 (0)