I'm trying to deploy contract using eosjs. setcode part is working, but I'm having trouble with setabi. When I deploy abi without any tables, it works. But if there will be at least one table, the error Error: missing table_def.indexes (type=index_def[]) appears
`async function deploy(deployer, contract) {
const buffer = new Serialize.SerialBuffer({
textEncoder: api().textEncoder,
textDecoder: api().textDecoder,
});
I'm trying to deploy contract using eosjs. setcode part is working, but I'm having trouble with setabi. When I deploy abi without any tables, it works. But if there will be at least one table, the error
Error: missing table_def.indexes (type=index_def[])
appears`async function deploy(deployer, contract) { const buffer = new Serialize.SerialBuffer({ textEncoder: api().textEncoder, textDecoder: api().textDecoder, });
}`
contract is object containing abi and wasm for contract eosjs version is 20.0.0-beta3