From f890181a8021818c00283f3f22ebd9a9b43f742a Mon Sep 17 00:00:00 2001 From: ramtinms Date: Mon, 15 Jul 2024 19:14:29 -0700 Subject: [PATCH] apply PR feedback --- fvm/evm/types/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fvm/evm/types/utils.go b/fvm/evm/types/utils.go index cd2b1ab7700..c351581bfc8 100644 --- a/fvm/evm/types/utils.go +++ b/fvm/evm/types/utils.go @@ -26,8 +26,9 @@ func CadenceUInt8ArrayValueToBytes(a cadence.Value) ([]byte, error) { return nil, fmt.Errorf("value is not an array") } + arrayType := aa.Type() // if array type is empty, continue - if aa.Type() != nil && !aa.Type().Equal(cadenceArrayTypeOfUInt8) { + if arrayType != nil && !arrayType.Equal(cadenceArrayTypeOfUInt8) { return nil, fmt.Errorf("invalid array type") }