walletconnect-test-wallet icon indicating copy to clipboard operation
walletconnect-test-wallet copied to clipboard

eth_sendTransaction crashes

Open StillFantastic opened this issue 3 years ago • 5 comments

When my dapp creates a transaction, I can see it receives a eth_sendTransaction request on test.walletconnect.org, but when I click on it the webpage just when blank. In the console there is an error message:

[Error] TypeError: null is not an object (evaluating 'n.slice') — utilities.ts:36
	ns (1.6bf39b93.chunk.js:1:1218449)
	(anonymous function) (1.6bf39b93.chunk.js:1:1225358)
	po (1.6bf39b93.chunk.js:1:1184397)
	us (1.6bf39b93.chunk.js:1:1219796)
	(anonymous function) (1.6bf39b93.chunk.js:1:1237536)
	(anonymous function)
	(anonymous function) (1.6bf39b93.chunk.js:1:1256809)
	_u (1.6bf39b93.chunk.js:1:1234026)
	hu (1.6bf39b93.chunk.js:1:1230150)
	hu
	(anonymous function) (1.6bf39b93.chunk.js:1:1181139)
	(anonymous function) (1.6bf39b93.chunk.js:1:1256809)
	Zi (1.6bf39b93.chunk.js:1:1181086)
	Gi (1.6bf39b93.chunk.js:1:1181021)
	ou (1.6bf39b93.chunk.js:1:1226718)
	enqueueSetState (1.6bf39b93.chunk.js:1:1184847)
	(anonymous function) (1.6bf39b93.chunk.js:1:1130854)
	(anonymous function) (main.80dd7bd7.chunk.js:1:42162)
	(anonymous function) (1.6bf39b93.chunk.js:1:3663)
	a (1.6bf39b93.chunk.js:1:2509)
	promiseReactionJob

StillFantastic avatar Mar 21 '21 13:03 StillFantastic

it looks like it's trying to call ellipseAddress() and it's receiving null instead

Is your dapp not providing either to or from fields of the transaction?

pedrouid avatar Mar 22 '21 16:03 pedrouid

I think both from and to are provided, since it works fine with other wallets. Could it be other problems?

StillFantastic avatar Mar 22 '21 16:03 StillFantastic

@pedrouid I tested it again, I didn't change my code, but this time it showed a different error message:

Error: Number can only safely store up to 53 bits
    n bn.js:5
    toNumber bn.js:474
    convertHexToNumber encoding.js:123
    render ethereum.ts:72
    render index.ts:23
    renderPayload App.tsx:554
    render RequestDisplay.tsx:45
    React 7
    unstable_runWithPriority scheduler.production.min.js:309
    React 6
    openRequest App.tsx:415
    s tslib.es6.js:212
    s tslib.es6.js:142
    a tslib.es6.js:97
    promise callback*u tslib.es6.js:112
    l tslib.es6.js:115
    l tslib.es6.js:94
    openRequest App.tsx:407
    onClick App.tsx:540
    React 12
    unstable_runWithPriority scheduler.production.min.js:309
    React 3
react_devtools_backend.js:2430:23
    overrideMethod react_devtools_backend.js:2430
    React 5
    unstable_runWithPriority scheduler.production.min.js:309
    React 4
    unstable_runWithPriority scheduler.production.min.js:309
    React 6
    openRequest App.tsx:415
    s tslib.es6.js:212
    s tslib.es6.js:142
    a tslib.es6.js:97
    (Async: promise callback)
    u tslib.es6.js:112
    l tslib.es6.js:115
    l tslib.es6.js:94
    openRequest App.tsx:407
    onClick App.tsx:540
    React 12
    unstable_runWithPriority scheduler.production.min.js:309

StillFantastic avatar Mar 23 '21 09:03 StillFantastic

I've also tested my dapp with MetaMask mobile wallet and alpha wallet, and didn't cause any error.

StillFantastic avatar Mar 23 '21 09:03 StillFantastic

When my dapp creates a transaction, I can see it receives a eth_sendTransaction request on test.walletconnect.org, but when I click on it the webpage just when blank. In the console there is an error message:

[Error] TypeError: null is not an object (evaluating 'n.slice') — utilities.ts:36
	ns (1.6bf39b93.chunk.js:1:1218449)
	(anonymous function) (1.6bf39b93.chunk.js:1:1225358)
	po (1.6bf39b93.chunk.js:1:1184397)
	us (1.6bf39b93.chunk.js:1:1219796)
	(anonymous function) (1.6bf39b93.chunk.js:1:1237536)
	(anonymous function)
	(anonymous function) (1.6bf39b93.chunk.js:1:1256809)
	_u (1.6bf39b93.chunk.js:1:1234026)
	hu (1.6bf39b93.chunk.js:1:1230150)
	hu
	(anonymous function) (1.6bf39b93.chunk.js:1:1181139)
	(anonymous function) (1.6bf39b93.chunk.js:1:1256809)
	Zi (1.6bf39b93.chunk.js:1:1181086)
	Gi (1.6bf39b93.chunk.js:1:1181021)
	ou (1.6bf39b93.chunk.js:1:1226718)
	enqueueSetState (1.6bf39b93.chunk.js:1:1184847)
	(anonymous function) (1.6bf39b93.chunk.js:1:1130854)
	(anonymous function) (main.80dd7bd7.chunk.js:1:42162)
	(anonymous function) (1.6bf39b93.chunk.js:1:3663)
	a (1.6bf39b93.chunk.js:1:2509)
	promiseReactionJob

Yooler2675 avatar Sep 09 '21 06:09 Yooler2675