lib/glueby/contract/timestamp/tx_builder/simple.rb in glueby-0.12.0 vs lib/glueby/contract/timestamp/tx_builder/simple.rb in glueby-1.0.0

- old
+ new

@@ -23,10 +23,14 @@ def set_data(prefix, data) @prefix = prefix @data = data - @txb.data(prefix + data) + contents = [prefix, data].map do |content| + content.bytes.map { |i| i.to_s(16) }.join + end + + @txb.data(*contents) self end def set_inputs(utxo_provider) if utxo_provider \ No newline at end of file