(fieldName string)
| 77 | } |
| 78 | |
| 79 | func (c *ContractReader) readBig(fieldName string) (*big.Int, error) { |
| 80 | bs, err := c.readSlot(fieldName) |
| 81 | if err != nil { |
| 82 | return nil, err |
| 83 | } |
| 84 | value := new(big.Int).SetBytes(bs) |
| 85 | c.lg.Info("Read big int from contract", "field", fieldName, "value", value) |
| 86 | return new(big.Int).SetBytes(bs), nil |
| 87 | } |
| 88 | |
| 89 | func (c *ContractReader) contractExists() (bool, error) { |
| 90 | code, err := c.client.CodeAt(c.ctx, c.contract, nil) |
no test coverage detected