-
Notifications
You must be signed in to change notification settings - Fork 566
Problem: etherjs smartcontract cannot change state (fix #257) #264
Conversation
Solution: increase base gas to make similar with ethereum
I have tried current main and its consistent with infura (no contract call) I think its better to fix the calculation rather than add a fixed value.
|
ok , i'll find a way to compute |
check this method (it refund max half consumed, maybe the logic is different with geth) |
If the calculation is equal to the value from infura, then there's no issue at all. It's expected to have the same gas value from any existing Etherum network what's going wrong here? Is |
21204 is not enough, it should be equal or above than 41646, Ganache: 0xa2ae = 41646 |
Probably this issue: #268 |
I used the example from the rpc doc. I think its just a memo. @leejw51crypto what is your code to return BTW the gas is a dynamic value, it depends on what you are calling, so you cannot assume we can use the same value for all |
i added 40000 |
i'll rebase after if EstimateGas returns correct estimation, |
closed by |
Solution: increase base gas to make similar with ethereum