-
Notifications
You must be signed in to change notification settings - Fork 465
@0x/contract-wrappers: marketBuyOrdersFillOrKill
incorrect ABI encoding
#2558
Comments
Hi @andrei-anisimov, thanks for raising this. I'm having trouble reproducing the bug. The only thing that looks "off" is this line, which doesn't need an
Here's my output from running the code snippet: I uploaded the repro attempt here, which can be run using |
Yes, super weird, I can still consistently reproduce it with your script above. You can find the repo here: https://github.com/andrei-anisimov/0x-market-poc. To run to
|
This issues is applicable to all batch- and market- fill methods.
Expected Behavior
contractWrappers.exchange.marketBuyOrdersFillOrKill
should correctly ABI-encode the calldata.Current Behavior
The result of the ABI-encoding is
0x8bc8efb3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000060
, which is not correct and missing all of the orders information.Trying to send such transaction onchain results in an error.
Steps to Reproduce (for bugs)
truffle exec
script:Context
I can successfully call the exchange methods directly using web3:
Your Environment
0x dependencies versions:
Using 0x Ganache Docker image https://hub.docker.com/r/0xorg/ganache-cli
The text was updated successfully, but these errors were encountered: