gridplus-sdk
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "gridplus-sdk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "SDK to interact with GridPlus Lattice1 device", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,5 +11,6 @@ // Utils for Ethereum transactions. This is effecitvely a shim of ethereumjs-util, which | ||
try { | ||
let { signerIndex, chainId=1, useEIP155=true } = data; | ||
let { signerIndex, chainId=1 } = data; | ||
if (typeof chainId !== 'number') chainId = chainIds[chainId]; | ||
if (!chainId) throw new Error('Unsupported chain name'); | ||
const useEIP155 = eip155[chainId]; | ||
// Ensure all fields are 0x-prefixed hex strings | ||
@@ -140,4 +141,14 @@ let rawTx = [] | ||
kovan: 42, | ||
goerli: 6284 | ||
goerli: 5 | ||
} | ||
const eip155 = { | ||
mainnet: true, | ||
ropsten: false, | ||
rinkeby:false, | ||
kovan: true, | ||
goerli: true | ||
} | ||
exports.chainIds = chainIds; |
46360
1090