module Eth::Tx

def sanitize_list(list)

Returns:
  • (Array) - the sanitized transaction access list.

Parameters:
  • list (Array) -- the transaction access list.
def sanitize_list(list)
  list = [] if list.nil?
  list.each_with_index do |value, index|
    if value.is_a? Array
      # recursively check the entire array
      list[index] = sanitize_list value
    elsif Util.hex? value
      # only modify if we find a hex value
      list[index] = Util.hex_to_bin value
    end
  end
  return list
end