imToken For Developers
English
English
  • Introduction
  • products
    • WebView
      • Development Guide for imToken DApp
      • RPC Methods
      • Compatibility
      • Preload URL Options
      • SDK APIs
      • Release changes
    • Universal Links
    • Deep Linking
  • References
    • imToken Brand Guide
    • dapp-sdk
    • tokenlon-onboarding
    • tokenlon-mmsk
    • tokenlon-mmproxy
    • tokenlon-jssdk
    • tokenlon-open-api
Powered by GitBook
On this page
  • Breaking Changes
  • No longer auto adds patches for web3.js send errors
  • No longer injecting web3.js

Was this helpful?

  1. products
  2. WebView

Release changes

Updates related to imToken WebView.

PreviousSDK APIsNextUniversal Links

Last updated 3 years ago

Was this helpful?

Breaking Changes

No longer auto adds patches for web3.js send errors

There is a bug in web3.js version 1.3.0 where the send function cannot be found, you can find a discussion of this in the web3.js repository: , , etc. this is usually displayed as the following error log:

Uncaught (in promise) TypeError: this.send is not a function
// or
TypeError: this._eip1193Send is not a function. (In 'this._eip1193Send(payload.method, payload.params)', 'this._eip1193Send' is undefined)

In previous versions, the imToken App would automatically add a patch to fix bugs from third parties, but this had some side effects and we will remove the automatically applied patch starting with version 2.9.4 of the imToken App.

This is a bug from web3.js, so we recommend that you upgrade or downgrade the web3.js package to fix this issue.

No longer injecting web3.js

Starting in 2021, the imToken App will no longer inject the web3.js API, so if you are still using such libraries, please package web3.js inside your web app yourself.

MetaMask also stopped injecting web3.js in early 2021. You can also read , which explains in detail why web3.js needs to be removed completely.

issue#3790
pr#3649
this article by MetaMask