-
Notifications
You must be signed in to change notification settings - Fork 228
[VM2] Support authorization keys #5326
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: feat-2.1
Are you sure you want to change the base?
Conversation
executor/wasm/src/lib.rs
Outdated
.with_parent_block_hash(parent_block_hash) | ||
.with_block_height(block_height) | ||
.with_runtime_native_config(runtime_native_config) | ||
.with_authorization_keys(BTreeSet::from_iter([initiator])) |
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.
You should also support authorization keys in the installer
executor/wasm/src/lib.rs
Outdated
let authorization_keys = if authorization_keys.is_empty() { | ||
BTreeSet::from_iter([initiator]) | ||
} else { | ||
authorization_keys | ||
}; |
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.
That seems unnecessary - wouldn't VM1 just take authorization keys, and handle the initiator case inside?
Threads authorization_keys into the VM2 context and executor, forwards them in all appropriate subcalls