It's error-prone to have to write WithContext all the time.
context stack makes the situation even more complex.
Proposal
Since the current design is to satisfy the StateDB interface, we can make a StateDB struct on the fly inside the ApplyMessage, and the keeper is clean from the mutable states, and pass the ctx around in the keeper methods.
The States
ctxStack
stateErr
The problem
WithContext
all the time.Proposal
Since the current design is to satisfy the
StateDB
interface, we can make aStateDB
struct on the fly inside theApplyMessage
, and the keeper is clean from the mutable states, and pass thectx
around in the keeper methods.