Skip to content

Commit 5fed81c

Browse files
committed
fix: remove allowed-endpoints, fix duplicate changelog heading, use assert style
Signed-off-by: Mounil <mounilkankhara@gmail.com>
1 parent 374d74e commit 5fed81c

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

.github/workflows/pr-check-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
2626
with:
2727
egress-policy: audit
28-
allowed-endpoints: >
29-
coresite-atl.mm.fcix.net:443
3028

3129
- name: Checkout repository
3230
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
3131

3232
- Refactored contract_delete_transaction example to use Client.from_env. (#1823)
3333

34-
### Added
35-
3634
### Docs
3735

3836
- docs: Improving formatting will make the pull request process clearer. (`#1858`)

tests/integration/contract_info_query_e2e_test.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,10 @@ def test_integration_contract_info_query_can_execute(env):
8383
assert info.auto_renew_period == auto_renew_period, "Auto renew period mismatch"
8484

8585
# Verify staking_info is populated (contracts default to no staking)
86-
staking = info.staking_info
87-
if staking is None:
88-
raise AssertionError("staking_info should not be None")
89-
if staking.staked_account_id is not None:
90-
raise AssertionError("staked_account_id should be None by default")
91-
if staking.staked_node_id is not None:
92-
raise AssertionError("staked_node_id should be None by default")
93-
if staking.decline_reward is not False:
94-
raise AssertionError("decline_reward should be False by default")
86+
assert info.staking_info is not None, "staking_info should not be None"
87+
assert info.staking_info.staked_account_id is None, "staked_account_id should be None by default"
88+
assert info.staking_info.staked_node_id is None, "staked_node_id should be None by default"
89+
assert info.staking_info.decline_reward is False, "decline_reward should be False by default"
9590

9691

9792
@pytest.mark.integration

0 commit comments

Comments
 (0)