You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Many orms represent nullable value by pointers and non-null value by struct value.
uint256.Int
however uses pointer receiver forValue()
, 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 forValue()
interface to avoid such problems.The text was updated successfully, but these errors were encountered: