(ctx context.Context, client *ethclient.Client, contract common.Address, logger log.Logger)
| 45 | } |
| 46 | |
| 47 | func newContractReader(ctx context.Context, client *ethclient.Client, contract common.Address, logger log.Logger) *ContractReader { |
| 48 | return &ContractReader{ |
| 49 | ctx: ctx, |
| 50 | client: client, |
| 51 | contract: contract, |
| 52 | lg: logger, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func (c *ContractReader) readSlot(fieldName string) ([]byte, error) { |
| 57 | h := crypto.Keccak256Hash([]byte(fieldName + "()")) |
no outgoing calls
no test coverage detected