-
Notifications
You must be signed in to change notification settings - Fork 58
impl burning of gas, add caller_token to AccountMeta of Cancel operation #206
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
Conversation
evm_loader/program/src/entrypoint.rs
Outdated
| let fee = U256::from(used_gas) | ||
| .checked_mul(gas_price_wei).ok_or_else(||E!(ProgramError::InvalidArgument))?; | ||
|
|
||
| let (caller_info, caller_token_info) = account_storage.get_caller_account_info().ok_or_else(||E!(ProgramError::InvalidArgument))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why user token is being getting here, but not mentioned in accounts like in Continue or CallFromRawEthereumTX
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| let AccountMeta{ account, token: _, code: _ } = &self.account_metas[account_index]; | ||
| return Some(account); | ||
| let AccountMeta{ account, token, code: _ } = &self.account_metas[account_index]; | ||
| return Some((account, token)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need token account to be returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
token was removed
|
Caller token for payment for transaction should be passed in first part of accounts list, and there is no need for returning token account in |
Dev docs restructure
When cancel operation is processed it is need to transfer all used gas to operator
Dependency: neonlabsorg/proxy-model.py#178