MCPcopy Create free account
hub / github.com/ethstorage/es-node / readUint

Method readUint

cmd/es-node/utils.go:69–77  ·  view source on GitHub ↗
(fieldName string)

Source from the content-addressed store, hash-verified

67}
68
69func (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
79func (c *ContractReader) readBig(fieldName string) (*big.Int, error) {
80 bs, err := c.readSlot(fieldName)

Callers 2

initStorageConfigFunction · 0.80
NewMinerConfigFunction · 0.80

Calls 1

readSlotMethod · 0.95

Tested by

no test coverage detected