We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aa22cb + 988638f commit c0a4a87Copy full SHA for c0a4a87
1 file changed
backend/src/main/java/com/bloxbean/cardano/client/backend/api/DefaultScriptSupplier.java
@@ -20,6 +20,9 @@ public DefaultScriptSupplier(ScriptService scriptService) {
20
21
@Override
22
public Optional<PlutusScript> getScript(String scriptHash) {
23
+ if (scriptHash == null || scriptHash.isEmpty())
24
+ return Optional.empty();
25
+
26
try {
27
var result = scriptService.getPlutusScript(scriptHash);
28
if (result.isSuccessful())
0 commit comments