-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ui test blocked by wallet connect modal (#1902)
- Loading branch information
Showing
5 changed files
with
7 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,6 @@ | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script> | ||
<script src="<spring:url value='/static/js/init.js' />"></script> | ||
<script src="<spring:url value='/static/js/difflib-0.2.4.min.js' />"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/index.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/fortmatic.js"></script> | ||
<script src="<spring:url value='/static/js/web3provider.js' />"></script> | ||
<%@ include file="/WEB-INF/jsp/error/javascript-error.jsp" %> | ||
</head> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,6 @@ | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script> | ||
<script src="<spring:url value='/static/js/init.js' />"></script> | ||
<script src="<spring:url value='/static/js/difflib-0.2.4.min.js' />"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/index.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/fortmatic.js"></script> | ||
<script src="<spring:url value='/static/js/web3provider.js' />"></script> | ||
<%@ include file="/WEB-INF/jsp/error/javascript-error.jsp" %> | ||
</head> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,6 @@ | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script> | ||
<script src="<spring:url value='/static/js/init.js' />"></script> | ||
<script src="<spring:url value='/static/js/difflib-0.2.4.min.js' />"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/index.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/fortmatic.js"></script> | ||
<script src="<spring:url value='/static/js/web3provider.js' />"></script> | ||
<%@ include file="/WEB-INF/jsp/error/javascript-error.jsp" %> | ||
</head> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,6 @@ | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script> | ||
<script src="<spring:url value='/static/js/init.js' />"></script> | ||
<script src="<spring:url value='/static/js/difflib-0.2.4.min.js' />"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/index.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/fortmatic.js"></script> | ||
<script src="<spring:url value='/static/js/web3provider.js' />"></script> | ||
<%@ include file="/WEB-INF/jsp/error/javascript-error.jsp" %> | ||
</head> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,20 @@ | |
</svg> | ||
Connect wallet | ||
</a> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script> | ||
<script src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/fortmatic.js"></script> | ||
<script src="<spring:url value='/static/js/web3provider.js' />"></script> | ||
<script> | ||
$(function() { | ||
// When the connect button is pressed, request to view providers | ||
$('#connectWeb3Wallet').click(async function() { | ||
console.info('#connectWeb3Wallet click'); | ||
try { | ||
// Request permission to connect to Web3 provider | ||
const provider = await connect() | ||
const provider = await connect(); | ||
window.web3 = new Web3(provider); | ||
// Request the currently selected address | ||
|
@@ -47,7 +51,7 @@ | |
// Request signature to verify ownership of the address | ||
window.web3.eth.personal.sign('I verify ownership of this account 👍', address) | ||
.then(signature => { | ||
console.info('Signature provided. Logging in...'); | ||
console.info('Signature provided. Signing on...'); | ||
// Add ETH address and signature to the form to be submitted | ||
$('#web3SignOnForm [name="address"]').val(address); | ||
|