(fieldName string)
| 67 | } |
| 68 | |
| 69 | func (c *ContractReader) readUint(fieldName string) (uint64, error) { |
| 70 | bs, err := c.readSlot(fieldName) |
| 71 | if err != nil { |
| 72 | return 0, err |
| 73 | } |
| 74 | value := new(big.Int).SetBytes(bs).Uint64() |
| 75 | c.lg.Info("Read uint from contract", "field", fieldName, "value", value) |
| 76 | return value, nil |
| 77 | } |
| 78 | |
| 79 | func (c *ContractReader) readBig(fieldName string) (*big.Int, error) { |
| 80 | bs, err := c.readSlot(fieldName) |
no test coverage detected