holiman/uint256

Use value receiver for `Value()`

Opened this issue · 0 comments

Many orms represent nullable value by pointers and non-null value by struct value. uint256.Int however uses pointer receiver for Value(), which causes panic when trying to store a null value to database, because the pointer is nil. It is a common practice to use value receiver for Value() interface to avoid such problems.