2

Below is the code I was using

augur.api.FeeWindow.buy({
            _attotokens: "0x03",
            tx: { 
                to: "0xf0637758a90cd1bccf6767f85433d1704216c491",
                gas: "0x632ea0" 
            }, 
            onSent: function (result) { console.log("sent",result) },
            onSuccess: function (result) { console.log("success",result) },
            onFailed: function (result) { console.log("error",result); }
        });

Response: Error: eth_call returned no data (0x)

2

Try add "tx.from" argument

    augur.api.CancelOrder.cancelOrder({
    _orderId: orderId,
    tx: {
        from: _EthAccount,
        to: cancelOrderAddress,
        gas: augur.constants.CANCEL_ORDER_GAS
    },
    onSent: function (result) {
        console.log(result);
    },
    onSuccess: function (result) {
        console.log(result);
    },
    onFailed: function (result) {
        console.log(result);
    }
});

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.