Skip to content

Instantly share code, notes, and snippets.

@plutoegg
Created September 24, 2018 14:45
Show Gist options
  • 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