Skip to content

Conversation

@Niederb
Copy link
Contributor

@Niederb Niederb commented Jan 26, 2023

This is not really to be merged as it is incomplete. I think it would be a nice, small refactoring though and should be applied to the other functions in the trait (and maybe other traits).

// TODO: improve error handling, using a mut status is not good design?
let mut status: OCallBridgeResult<()> = Ok(());

let mut slice = signed_blocks_encoded;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the "trick": Create a mutable copy of the slice (as decode() needs it). Maybe this could be written nicer?

@Niederb Niederb self-assigned this Jan 26, 2023
@Niederb Niederb requested review from OverOrion and clangenb January 26, 2023 11:52
@OverOrion OverOrion removed their request for review October 30, 2023 16:14
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.

2 participants