Closed therealbytes closed 1 month ago
can i hop on this?
Can I work on this for ODHack?
My approach would be
mockBlockContext
I'll take this as reference https://github.com/concrete-eth/concrete-geth/blob/bbfb219b2b3d4df32837818a8a52062bede0c1ac/core/vm/evm.go#L104-L124mockCaller
I would refer go-ethereum https://github.com/ethereum/go-ethereum/blob/master/accounts/abi/bind/base_test.goHey @rajeshkumarrobert , any progress here?
Rationale
The current mocks in
concrete/api/mock.go
return nil/zero values for every method, which is insufficient for proper testing.Implementation
Create mocks that expose the right interface while also exposing methods to manipulate their internal state and hook into their execution during testing.