Lohann Paterno Coutinho Ferreira
Lohann Paterno Coutinho Ferreira
Thx @imalsogreg it worked! btw follow a more generic implementation that also includes `Map` and works with `query_as!` macro: ```rust #[async_trait] /// A trait for adding shim methods to sqlx::QueryAs...
We needed this feature in our pallet, the workaround we found is using traits, but is not optimal: ```rust trait ConstGet { const VALUE: T; } struct Two; impl ConstGet...
@Amxx thanks for the feedback, will remove some assembly at the cost of a consuming a bit more gas, but essentially what the sqrt does is: ```solidity function sqrt(uint256 a)...
@Amxx makes sense, I removed the sqrt changes, I also removed all assembly code maintaining the same gas efficiency to `min` and `max` methods. I made it a bit more...
>When you do a ternary choice, the compiler can "optimize" it so that only one branch is computer. However, when you use a dedicated function, values for both side must...
still waiting for a fix
While solidity don't support verbatim we must be creative... I implemented this workaround that doesn't require you to manually edit the bytecode: https://gist.github.com/Lohann/3c1073d83be667a64ba62654a5b4a469 ```solidity contract ExampleImpl { // Workaround for...
At `publicKey` localstorage: https://github.com/mogol/flutter_secure_storage/blob/develop/flutter_secure_storage_web/lib/flutter_secure_storage_web.dart#L14