lib/flow_client/utils.rb in flow_client-0.1.0 vs lib/flow_client/utils.rb in flow_client-0.1.1

- old
+ new

@@ -28,10 +28,10 @@ # aliases is a hash with aliases as string keys and addresses as values, # e.g. { "0xFUNGIBLE_TOKEN_ADDRESS": "0x0" } def self.substitute_address_aliases(script_or_transaction, aliases = {}) new_string = script_or_transaction aliases.each do |key, value| - new_string = new_string.gsub("#{key}", "#{value}") + new_string = new_string.gsub(key.to_s, value.to_s) end new_string end end end