Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!(vm-logic): Remove error from attached deposit for view calls #8433

Merged
merged 6 commits into from
Jan 27, 2023

Conversation

austinabell
Copy link
Contributor

Description copied from #7936

Accompanying PR for near/NEPs#418

It's very simple, so I figured I'd just open.

I'm generally uncomfortable with how certain context is redundant for view context, and it wasn't clear whether or not this check should be kept and just return 0 for attached deposit for view contexts. Seems like the only logic which uses the view logic sets the deposit to 0, but I'm not sure if it will ever be wanted to be able to configure context for view calls in the future.

Copy link
Collaborator

@frol frol 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 me.

@austinabell Thanks for the PR!

@near-bulldozer near-bulldozer bot merged commit 9178895 into near:master Jan 27, 2023
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Jan 30, 2023
…ar#8433)

Description copied from near#7936 

Accompanying PR for near/NEPs#418

It's very simple, so I figured I'd just open.

I'm generally uncomfortable with how certain context is redundant for view context, and it wasn't clear whether or not this check should be kept and just return 0 for attached deposit for view contexts. Seems like the only logic which uses the view logic [sets the deposit to 0](https://github.com/near/nearcore/blob/d13f66bcdf71ff6a6fdf9f31edad1182283a7523/runtime/runtime/src/state_viewer/mod.rs#L224), but I'm not sure if it will ever be wanted to be able to configure context for view calls in the future.
ppca pushed a commit to ppca/nearcore that referenced this pull request Jan 30, 2023
…ar#8433)

Description copied from near#7936 

Accompanying PR for near/NEPs#418

It's very simple, so I figured I'd just open.

I'm generally uncomfortable with how certain context is redundant for view context, and it wasn't clear whether or not this check should be kept and just return 0 for attached deposit for view contexts. Seems like the only logic which uses the view logic [sets the deposit to 0](https://github.com/near/nearcore/blob/d13f66bcdf71ff6a6fdf9f31edad1182283a7523/runtime/runtime/src/state_viewer/mod.rs#L224), but I'm not sure if it will ever be wanted to be able to configure context for view calls in the future.
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.

3 participants