Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test autodeploy flow #290

Merged
merged 4 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@ Like so many projects, this effort has roots in many places. The list can be fou
- goerli
- mainnet
- polygon-mumbai

4 changes: 3 additions & 1 deletion ui/wallet/src/ProxeusEthereum/MetamaskWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ class MetamaskWallet {
}

async setupDefaultAccount () {
console.log('Setting up default account')
this.web3.eth.defaultAccount = (await this.web3.eth.requestAccounts())[0]
}

async signMessage (message) {
const address = this.getCurrentAddress()
console.log('Sign message request, address: ', address)
return this.web3.eth.personal.sign(message, address)
}

Expand All @@ -22,7 +24,7 @@ class MetamaskWallet {
getCurrentAddress () {
this.web3.eth.getAccounts().then((address) => {
if (this.web3.eth.defaultAccount !== address[0]) {
console.log('user changed the account')
console.log('User changed the account')
}
})
return this.web3.eth.defaultAccount
Expand Down