-
Notifications
You must be signed in to change notification settings - Fork 227
Write install record with transaction hash #5371
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
base: dev
Are you sure you want to change the base?
Write install record with transaction hash #5371
Conversation
| .metered_write_gs_unsafe(contract_package_key, contract_package)?; | ||
| let current_blocktime = self.context.get_block_info().block_time(); | ||
|
|
||
| self.context |
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.
This is only valid for VM1?
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.
Yeah, i think it might make sense to add it for VM2 as another PR?
| let contract_key = Key::Hash(smart_contract_addr); | ||
| state.metered_write(contract_key, StoredValue::Contract(contract))?; | ||
| let cl_value = | ||
| CLValue::from_t(transaction_hash).map_err(InstallContractError::CLValueError)?; |
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.
we write the record for VM2 here @zajko
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.
Ok, missed that - thanks!
CHANGELOG:
Keyvariant calledInstall