Skip to content

Commit

Permalink
apply PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ramtinms committed Jul 16, 2024
1 parent b062933 commit f890181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fvm/evm/types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit f890181

Please sign in to comment.