Skip to content

Instantly share code, notes, and snippets.

@plutoegg
Created September 24, 2018 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutoegg/277910bb7da132334c8e5f362dec8bb7 to your computer and use it in GitHub Desktop.
Save plutoegg/277910bb7da132334c8e5f362dec8bb7 to your computer and use it in GitHub Desktop.
Trustless Developer Guide - 7
const sig = await efx.sign(parseInt(orderId).toString(16))
const sigConcat = ethUtils.toRpcSig(sig.v, ethUtils.toBuffer(sig.r), ethUtils.toBuffer(sig.s))
await efx.cancelOrder(parseInt(orderId), sigConcat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment