FuelLabs / sway-libs

Miscellaneous Sway libraries.
https://docs.fuel.network/docs/sway-libs/
Apache License 2.0
146 stars 61 forks source link

Add `Option` to function arguments in Bytecode Library #219

Closed bitzoic closed 2 months ago

bitzoic commented 7 months ago

Motivation

The library currently has the following function definitions:

This should be changed to a single function with an Option: pub fn compute_bytecode_root(bytecode: Vec<u8>, configurables: Option<Vec<(u64, Vec<u8>)>>) -> b256