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