Skip to content

Work with latest web3.js

Compare
Choose a tag to compare
@cmeisl cmeisl released this 27 Mar 17:07
· 135 commits to develop since this release
1633d64

This release refactors our internal handling of the web3 Contract object.

Assist.js initially took a "decoration" approach to augmenting the functionality of Web3's Contract objects. This modified the properties and methods of an existing Contract object in a way that enabled Assist to hook in and do extra work.

The library now uses a "delegation" approach, which takes an existing Contract object and returns a new object with the additional Assist functionality. This new object maintains references to the methods on the original Contract object so that transactions and contract calls can be delegated to those methods after Assist performs its pre-flight and notification work.

note: 1.0 beta versions 38, 39, 40, 41, 42, 43, 44, 45 have bugs when interacting with MetaMask, we recommend you avoid these versions of web3.js