steemit / steem-ruby

Steem-ruby is the official Ruby library for the Steem blockchain
MIT License
9 stars 15 forks source link

publish comment/post #19

Open ShadowMyst opened 5 years ago

ShadowMyst commented 5 years ago

Hi, I have the problem that when I want to publish, using the Steem Ruby API, I get the error of "Steem :: SerializationMismatchError"

However, as much as I try to find out, I can't find where the fault is

options = {
  wif: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  params: {
    author: 'shadowmyst',
    permlink: 'probandolkmkkllkmlkejmlkew',
    parent_permlink: 'blog',
    title: 'Probando',
    body: 'mensaje creado usando steem-ruby',
    metadata: {
      tags: %w(blog spanish)
    }
  }
}

Steem::Broadcast.comment(options) do |result|
  if result.respond_to? :valid
    puts "procesado"
  else
    puts "no funciono"
  end
end

image

inertia186 commented 4 years ago

Probably because metadata need the value of: {tags: %w(blog spanish)}.to_json