Transaction Failed

#1

Hello,
I tried to interact with 0x.js

I can make order, store order on relay but I cannot fill it.

When I try to fill it:
await contractWrappers.exchange.validateFillOrderThrowIfInvalidAsync is without errors and the transaction will fail.

TX:
https://ropsten.etherscan.io/tx/0x749ee89fd95c3706295ea2c51be5aab4acc1798b322c61019b61fb4a167152af
{"signature":"0x1bb681f2f7cf5fdaa593c43ef047196e4d74d8293d62e6d2c65148c825b469b2630bcd20d75b3ad109d43524ef0a07714bce1983f48b16c7dde6f39e667ac331fa03","senderAddress":"0x0000000000000000000000000000000000000000","makerAddress":"0xb23f68e59c3bde7847b55dc87bccf16df6a216d5","takerAddress":"0x0000000000000000000000000000000000000000","makerFee":"0","takerFee":"0","makerAssetAmount":"20000000000000000000","takerAssetAmount":"2000000000000000000","makerAssetData":"0xf47261b00000000000000000000000004d439d3a5bad256433461b80a06c4ab452734a4a","takerAssetData":"0xf47261b0000000000000000000000000ab3496ee8448aa28c20cdff12d6a06bef6eb3afd","salt":"13699813034934896168687104045266594193023636868396019452019872260125303793524","exchangeAddress":"0xf6e8eff168dd4f324304862125a873e864526f72","feeRecipientAddress":"0xf58c5b0fa42f07df29103f6324641da96dc101e7","expirationTimeSeconds":"1553990080954"}

Token a
https://ropsten.etherscan.io/token/0x4d439d3a5bad256433461b80a06c4ab452734a4a

Token b
https://ropsten.etherscan.io/token/0xab3496ee8448aa28c20cdff12d6a06bef6eb3afd

#2

The problem was the exchangeAddress in ropsten.
I fixed with 0x4530c0483a1633c7a1c97d2c53721caff2caaaaf

Now the transaction work fine, the order is filled, but no token transfers.
Why?

https://ropsten.etherscan.io/tx/0xcd707098d350b25ab9d495ab9d2a2210fa900305c0cfc7620f337ddf061ac411

#3

There are no transfers because your maker address was the same as the taker address, 0x optimises this case and doesn’t transfer (just marks the order as filled). Try filling from a different address.

1 Like
#4

thanks it work!
You have right, I need to take with another account right