Hari

Results 84 comments of Hari

Alternatively, if one really wants to keep the data in memory, one can use the identity precompile to copy from memory to memory. It should be cheaper if that loop...

``` (seq p = x * y p1 = mulmod(x, y, not(0)) assert(p == p1) x*y ) ``` If `x * y = not(0)`, this won't be true, right? For...

Unfortunately, changing to `>=` won't help either. Take `x = 2**256 - 1` and `y = 2`, then `x * y` overflows and evaluates to `2**256 - 2`, but `mulmod(x,...

Here's a before and after before: https://output.circle-artifacts.com/output/job/1839fe06-7445-49a1-8622-48d9d78cb87d/artifacts/0/docs-html/introduction-to-smart-contracts.html after: https://output.circle-artifacts.com/output/job/27a7a6be-0d7f-4fca-b30f-1d1bb13e06f8/artifacts/0/docs-html/introduction-to-smart-contracts.html Somewhat indifferent on the change. Maybe @franzihei has an opinion here. Also, PR number 👀

Unfortunately, this is a known issue, and does not have a good fix. (We are working on a solution for upcoming solidity versions, but until then, sorry) Here are two...

@SvenMeyer Could you post a minimal example with the stack too deep error? Perhaps we could help with a specific suggestion to fix it. BTW, the function `getPurchaseStruct` is redundant...

> I assume solc 0.8.x would not make a difference either ? @SvenMeyer You can try running with the latest release / develop. There were some minor changes in stack...

@lepidotteri OVM is a project independent of solidity. AFAIK, OVM currently doesn't support 0.8.*. Please ask them directly about the status.

> My only question now is what the effect of disabling the YUL optimizer will be. @cliffhall The ABI encoder v2 code for your contract would not be optimized.