File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1212from pycardano .exception import TransactionFailedException
1313from pycardano .hash import SCRIPT_HASH_SIZE , DatumHash , ScriptHash
1414from pycardano .nativescript import NativeScript
15- from pycardano .network import Network , BLOCKFROST_URLS
15+ from pycardano .network import BLOCKFROST_URLS , Network
1616from pycardano .plutus import ExecutionUnits , PlutusV1Script , PlutusV2Script
1717from pycardano .serialization import RawCBOR
1818from pycardano .transaction import (
@@ -172,7 +172,10 @@ def utxos(self, address: str) -> List[UTxO]:
172172
173173 script = None
174174
175- if hasattr (result , "reference_script_hash" ) and result .reference_script_hash :
175+ if (
176+ hasattr (result , "reference_script_hash" )
177+ and result .reference_script_hash
178+ ):
176179 script = self ._get_script (result .reference_script_hash )
177180
178181 tx_out = TransactionOutput (
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ def from_primitive(cls, value: int) -> Network:
3232 Network .TESTNET : "https://cardano-testnet.blockfrost.io/api" ,
3333 Network .PREVIEW : "https://cardano-preview.blockfrost.io/api" ,
3434 Network .PREPROD : "https://cardano-preprod.blockfrost.io/api" ,
35- }
35+ }
You can’t perform that action at this time.
0 commit comments