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
where the DerivativeOrderInfo struct is defined as
// DerivativeOrderInfo is an auto generated low-level Go binding around an user-defined struct.typeDerivativeOrderInfostruct {
OrderStatusuint8OrderHash [32]byteOrderTakerAssetFilledAmount*big.IntSubAccountID [32]byteDirectionuint8MarketID [32]byteEntryPrice*big.Int
}
It's expected this call should work successfully without any panics.
System information
Geth version:
geth version 1.9.25
,abigen version 1.9.25-stable
OS & Version: OSX
Commit hash :
e7872729012a4871397307b12cc3f4772ffcbec6
Expected behaviour
After generating contract bindings using
abigen version 1.9.25-stable
, I tried calling a view functiongetOrderRelevantStates
(see below)where the
DerivativeOrderInfo
struct is defined asIt's expected this call should work successfully without any panics.
Actual behaviour
However, this results in the following panic
The
OrderHash
,SubAccountID
, andMarketID
fields are attempting to be converted as[32]uint8
instead of[32]byte
as expected.We manually fixed this in our contract binding wrapper here but this should be fixed on the abigen level obviously.
The text was updated successfully, but these errors were encountered: