Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hboon It looks like not all changes that is needed, guess there is mistake in js file aplied to WebView.
we handle
processTransaction
from js file, and treat it assignTransaction
that we receive in web browser, out of js fileHookedWalletSubprovider.prototype.processTransaction
uses for sending transaction.there is also
processSignTransaction
, that should be used for signing transaction, and looks like we skipping itHookedWalletSubprovider.prototype.processSignTransaction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might need to add
webViewConfig.userContentController.add(messageHandler, name: Method.sendTransaction.rawValue)
as there is no such line in addition there might be need to replace processTransaction to make it sendsendTransaction
insteead of signTransaction:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and also need to define
processSignTransaction
for AlphaWallet js provider, looks like it not visible, the is required js file changesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hboon do we have example dapp for testing, looks like uniswap don't work with goerli anymore, (at list for me)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I know of now. I can dig into this issue/PR if you like. Might build a test dapp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When testing against Uniswap, I use Polygon — cheaper :P