Skip to content

Commit 9c7abbf

Browse files
committed
Fix delegation test
1 parent c463166 commit 9c7abbf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

integration-test/test/test_certificate.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ def test_stake_delegation(self):
9797
keys=[stake_address.encode()]
9898
)
9999

100-
stake_address_reward = rewards[stake_address.staking_part.payload.hex()][
101-
"rewards"
102-
]["ada"]["lovelace"]
100+
stake_address_reward = 0
101+
if stake_address.staking_part.payload.hex() in rewards:
102+
stake_address_reward = rewards[stake_address.staking_part.payload.hex()][
103+
"rewards"
104+
]["ada"]["lovelace"]
103105

104106
builder.withdrawals = Withdrawals({bytes(stake_address): stake_address_reward})
105107

0 commit comments

Comments
 (0)