Skip to content

Use EulithWeb3 as context manager#9

Merged
kristian1108 merged 1 commit into
Eulith:masterfrom
ian-eulith:master
Nov 15, 2023
Merged

Use EulithWeb3 as context manager#9
kristian1108 merged 1 commit into
Eulith:masterfrom
ian-eulith:master

Conversation

@ian-eulith

Copy link
Copy Markdown
Contributor

No description provided.

@kristian1108 kristian1108 self-requested a review November 1, 2023 03:41

# Don't use this in production. Use KMSSigner() instead. You can test with this or with LedgerSigner()
wallet = LocalSigner(PRIVATE_KEY)
ew3 = EulithWeb3("https://arb-main.eulithrpc.com/v0", EULITH_TOKEN, construct_signing_middleware(wallet))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what happened to the spacing here? Was my IDE weird? I don't want to change the spacing standard in half the files here and not the others.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the extra level of indentation? That's inherent to the with statement in Python. Only half the files are changed because half the files were already using with. You can check 'Hide whitespace' in GitHub while reviewing.

@kristian1108 kristian1108 self-requested a review November 15, 2023 23:20
@kristian1108 kristian1108 merged commit a255338 into Eulith:master Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants