bnc-assist
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "bnc-assist", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Blocknative Assist js library for Dapp developers", | ||
@@ -5,0 +5,0 @@ "main": "lib/assist.min.js", |
@@ -38,3 +38,3 @@ # assist.js | ||
The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). | ||
The current version is 0.3.3. | ||
The current version is 0.3.4. | ||
There are minified and non-minified versions. | ||
@@ -55,3 +55,3 @@ Put this script at the top of your `<head>` | ||
The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). | ||
The current version 0.3.3. | ||
The current version 0.3.4. | ||
There are minified and non-minified versions. | ||
@@ -61,7 +61,7 @@ Put this script at the top of your `<head>` | ||
```html | ||
<script src="https://assist.blocknative.com/0-3-3/assist.js"></script> | ||
<script src="https://assist.blocknative.com/0-3-4/assist.js"></script> | ||
<!-- OR... --> | ||
<script src="https://assist.blocknative.com/0-3-3/assist.min.js"></script> | ||
<script src="https://assist.blocknative.com/0-3-4/assist.min.js"></script> | ||
``` | ||
@@ -68,0 +68,0 @@ |
@@ -20,3 +20,3 @@ import '@babel/polyfill' | ||
// Library Version - if changing, also need to change in package.json | ||
const version = '0.3.3' | ||
const version = '0.3.4' | ||
@@ -236,4 +236,10 @@ function init(config) { | ||
const { legacyWeb3 } = state | ||
const abi = contractObj.abi || contractObj._jsonInterface | ||
const abi = | ||
contractObj.abi || | ||
contractObj._jsonInterface || | ||
Object.keys(contractObj.abiModel.abi.methods).map( | ||
key => contractObj.abiModel.abi.methods[key].abiItem | ||
) | ||
const modifiedContractObject = abi.reduce((originalContract, methodABI) => { | ||
@@ -240,0 +246,0 @@ const { name, type } = methodABI |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1376209
19940