Skip to content

Instantly share code, notes, and snippets.

@derekalia
Created November 28, 2018 06:12
Show Gist options
  • Select an option

  • Save derekalia/a7db60904db5ea01f626673f706b89a3 to your computer and use it in GitHub Desktop.

Select an option

Save derekalia/a7db60904db5ea01f626673f706b89a3 to your computer and use it in GitHub Desktop.
Create Order for ERC721
┌─────────────────────────┐
│ Create Order for ERC721 │
└─────────────────────────┘
Accounts
Maker 0x440639802dc08081888fe71243ebf574a2031174
Taker 0x6265651aac0ecfca6564ee6f0ee2cc8127333c82
{ tokenId: 18 }
Order
exchangeAddress 0x35dd2932454449b14cee11a94d3674a936d5d7b2
makerAddress 0x440639802dc08081888fe71243ebf574a2031174
takerAddress 0x0000000000000000000000000000000000000000
senderAddress 0x0000000000000000000000000000000000000000
feeRecipientAddress 0x0000000000000000000000000000000000000000
expirationTimeSeconds 1543445741
salt 43233636059268301580473381521350074979176008283972292582632511506849265989072
makerAssetAmount 1
takerAssetAmount 100000000000000000
makerAssetData 0x02571792000000000000000000000000860b40f6f1c49b76a0955d8ea3e2d038e5c833890000000000000000000000000000000000000000000000000000000000000012
takerAssetData 0xf47261b0000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c
makerFee 0
takerFee 0
Allowances
Token Maker Taker
WETH 0 MAX_UINT
Balances
Token Maker Taker
WETH 0.2 0.1
ERC721 Owner
Token Maker Taker
ERC721 ____
.X +. .
.Xx + -. .
XXx++ -..
XXxx++--..
XXXxx+++--
XXXxxx'
""
Error: 400 - Bad Request
POST http://localhost:3001/v2/order?networkId=42
{"code":100,"reason":"Validation Failed","validationErrors":[{"field":"makerAssetData","code":1004,"reason":"0x860b40f6f1c49b76a0955d8ea3e2d038e5c83389 not supported"}]}
at HttpClient.<anonymous> (/Users/derekalia/Desktop/ox/node_modules/@0x/connect/src/http_client.ts:205:19)
at step (/Users/derekalia/Desktop/ox/node_modules/@0x/connect/lib/src/http_client.js:32:23)
at Object.next (/Users/derekalia/Desktop/ox/node_modules/@0x/connect/lib/src/http_client.js:13:53)
at fulfilled (/Users/derekalia/Desktop/ox/node_modules/@0x/connect/lib/src/http_client.js:4:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)
error Command failed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment