0

when I create actions like this,and prapare to use JsSignatureProvider to sign

(async()=>{
  let actions = [{
    account: 'tommy',
    name: 'hi',
    authorization: [{
      actor: 'tommy',
      permission: 'active',
    }],
    data: {
      user: 'tommy'
    },
  }
  let seActions = await api.serializeActions(actions)   
  console.log(seActions)
})()

 let seActions =  api.serializeActions(tx) ;
 console.log(seActions);

but nodejs report this error:

TypeError: actions.map is not a function

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.