[monero-project/monero] relay_tx error via monero_wallet_rpc: ‘Failed to parse tx metadata.’ (#4283)

I don’t understand your reply. I tried passing `{ hex: tx_metadata }` with no success.

«`js
let tx_blob = »;
let tx_metadata = »;

describe(‘transfer()’, () => {
it(‘should generate transaction’, done => {
walletRPC.transfer({
address: address,
amount: 0.1,
mixin: 6,
get_tx_key: true,
account_index: 0,
subaddr_indices: 0,
priority: 1,
do_not_relay: true,
get_tx_hex: true,
get_tx_metadata: true
})
.then(result => {
result.should.be.a.Object();
result.amount.should.be.a.Number();
result.amount.should.be.equal(100000000000);
result.fee.should.be.a.Number();
result.tx_hash.should.be.a.String();
result.tx_key.should.be.a.String();
result.tx_blob.should.be.a.String();
tx_blob = result.tx_blob;
result.tx_metadata.should.be.a.String();
tx_metadata = result.tx_metadata;
})
.then(done, done);
})
.timeout(3000);
});

describe(‘relay_tx()’, () => {
it(‘should relay transaction’, done => {
walletRPC.relay_tx(tx_metadata)
.then(result => {
console.log(result);
})
.then(done, done);
});
});
«`

Same error code as when passing `tx_blob`