Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Add Account.declare #207

Merged
merged 22 commits into from
Oct 21, 2022
Merged

Add Account.declare #207

merged 22 commits into from
Oct 21, 2022

Conversation

martriay
Copy link
Contributor

@martriay martriay commented Sep 22, 2022

Fixes #186, #205.

@martriay martriay linked an issue Sep 22, 2022 that may be closed by this pull request
@martriay martriay marked this pull request as draft September 22, 2022 23:00
@martriay martriay marked this pull request as ready for review September 22, 2022 23:36
src/nile/core/declare.py Outdated Show resolved Hide resolved
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Excellent PR! I left some questions and comments :)

README.md Outdated Show resolved Hide resolved
src/nile/cli.py Outdated Show resolved Hide resolved
src/nile/common.py Show resolved Hide resolved
andrew-fleming
andrew-fleming previously approved these changes Sep 24, 2022
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Small fix on the click option, but otherwise this looks good to me!

src/nile/cli.py Outdated Show resolved Hide resolved
src/nile/utils/__init__.py Outdated Show resolved Hide resolved
src/nile/utils/__init__.py Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
Copy link
Member

@ericglau ericglau left a comment

Choose a reason for hiding this comment

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

account's functions should set max_fee to be None by default (the functions' code already handles None but the function signatures need to reflect this)

src/nile/core/account.py Outdated Show resolved Hide resolved
src/nile/core/account.py Outdated Show resolved Hide resolved
src/nile/core/account.py Outdated Show resolved Hide resolved
Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

I left a couple of comments, but I can provide a better review after conflicts with main are resolved, because there are important differences regarding the int pattern mostly.

README.md Show resolved Hide resolved
src/nile/core/account.py Outdated Show resolved Hide resolved
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looking good, @martriay! I left a few comments :)

src/nile/core/declare.py Outdated Show resolved Hide resolved
tests/commands/test_account.py Outdated Show resolved Hide resolved
src/nile/signer.py Show resolved Hide resolved
@ericglau
Copy link
Member

The get_hash logic looks good to me, thanks! (I didn't review the rest of this PR)

src/nile/nre.py Outdated Show resolved Hide resolved
Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

Looking good! I added a comment and thumbs up to the Andrew review notes.

src/nile/core/account.py Show resolved Hide resolved
ericnordelo
ericnordelo previously approved these changes Oct 21, 2022
Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

Looking good to go!

andrew-fleming
andrew-fleming previously approved these changes Oct 21, 2022
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looks good to go!

@martriay martriay merged commit 01ddf87 into main Oct 21, 2022
@martriay martriay deleted the account-declare-deploy branch October 21, 2022 21:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve how declare handles an existing class hash Adjust declare so only accounts can declare txs
5 participants