You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get method does two eth_calls, one for accepted and one for finalized.
Frontend does two calls and shows both return values.
eth_call contains a flag to choose accepted or finalized state. Put default on accepted so that the write method does not need a flag.
_SnapshotView class read method need to select the correct state key based on the given flag.
Get method does one eth_call getting the whole state dictionary.
Parsing/decoding needs to be updated in GenlayerJS.
Doubt: _SnapshotView class read method will give the whole dictionary but the write method call of the frontend uses the _SnapshotView class read method. So somehow the accepted state from the dictionary needs to be given to the genvm processing and not the whole dictionary.
The text was updated successfully, but these errors were encountered:
kstroobants
changed the title
Consensus: frontend get method shows accepted and finalized contract state
Consensus: frontend get method should show accepted and finalized contract state
Jan 3, 2025
@kstroobants, we must not change eth_ methods since they need to be compatible with any Ethereum-like node. If this has a different signature, we should create the gen_ specific method
we must not change eth_ methods since they need to be compatible with any Ethereum-like node. If this has a different signature, we should create the gen_ specific method
The new flag parameter (stateStatus) is part of the params: dict of the def call() of the eth_call RPC method. How is this different than the leaderOnly parameter given to eth_sendRawTransaction?
-> 1. might be the easiest. Both require a change in GenlayerJS (https://github.com/yeagerai/genlayer-js/blob/d941a8d6342c62916c50246269cf1cc1db471357/src/contracts/actions.ts#L25)
Two options:
The text was updated successfully, but these errors were encountered: