Skip to content

Commit

Permalink
revert to hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
nadineloepfe committed Nov 26, 2024
1 parent 9c4d6db commit 5a52da8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ jobs:
OPERATOR_ID: ${{ steps.solo.outputs.accountId }}
OPERATOR_KEY: ${{ steps.solo.outputs.privateKey }}
PUBLIC_KEY: ${{ steps.solo.outputs.publicKey }}
NETWORK: 'solo'
run: python test.py

7 changes: 1 addition & 6 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ def transfer_token(client, recipient_id, token_id):
def main():
operator_id, operator_key = load_operator_credentials()

network_type = os.getenv('NETWORK')
if network_type == 'solo':
network = Network(node_address='localhost:50211', node_account_id=AccountId(0, 0, 3))
else:
network = Network(network=network_type)

network = Network(node_address='localhost:50211', node_account_id=AccountId(0, 0, 3))
client = Client(network)
client.set_operator(operator_id, operator_key)

Expand Down

0 comments on commit 5a52da8

Please sign in to comment.