fix: StorageKey is now fixed-size array

This commit is contained in:
Aayush 2023-02-14 19:04:43 -05:00
parent 45cbbe6c7a
commit 3f063f7cd7

View File

@ -526,7 +526,7 @@ func (a *EthModule) EthGetStorageAt(ctx context.Context, ethAddr ethtypes.EthAdd
} }
params, err := actors.SerializeParams(&evm.GetStorageAtParams{ params, err := actors.SerializeParams(&evm.GetStorageAtParams{
StorageKey: position, StorageKey: *(*[32]byte)(position),
}) })
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to serialize parameters: %w", err) return nil, fmt.Errorf("failed to serialize parameters: %w", err)