Skip to content

Commit d7df364

Browse files
Merge pull request #172 from Web3Auth/feat/webpack-5
Use torus cli 1.0.0
2 parents 6baa401 + c719442 commit d7df364

File tree

61 files changed

+20590
-198109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+20590
-198109
lines changed

examples/getting-started/eth/index.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h1 class="title"><a target="_blank" href="http://web3auth.io/">Web3Auth</a> ETH
3939

4040
<script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
4141
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js@1/dist/web3.min.js"></script>
42-
<script src="https://cdn.jsdelivr.net/npm/@web3auth/web3auth@0/dist/web3auth.umd.min.js"></script>
42+
<script src="./web3auth.umd.min.js"></script>
4343
<script>
4444
const web3authSdk = window.Web3auth;
4545
let web3AuthInstance = null;
@@ -165,28 +165,27 @@ <h1 class="title"><a target="_blank" href="http://web3auth.io/">Web3Auth</a> ETH
165165
console.error(error.message);
166166
}
167167
});
168-
168+
169169
$("#sign-tx").click(async function (event) {
170170
try {
171171
const provider = web3AuthInstance.provider;
172-
const web3 = new Web3(provider);
172+
const web3 = new Web3(provider);
173173
const accounts = await web3.eth.getAccounts();
174174
const txRes = await web3.eth.signTransaction({
175175
from: accounts[0],
176176
to: accounts[0],
177177
value: web3.utils.toWei("0.01"),
178178
});
179179
$("#code").text(JSON.stringify(txRes));
180-
181180
} catch (error) {
182181
console.error(error.message);
183182
}
184183
});
185-
184+
186185
$("#send-tx").click(async function (event) {
187186
try {
188187
const provider = web3AuthInstance.provider;
189-
const web3 = new Web3(provider);
188+
const web3 = new Web3(provider);
190189
const accounts = await web3.eth.getAccounts();
191190

192191
const message = "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad";
@@ -196,7 +195,6 @@ <h1 class="title"><a target="_blank" href="http://web3auth.io/">Web3Auth</a> ETH
196195
value: web3.utils.toWei("0.01"),
197196
});
198197
$("#code").text(JSON.stringify(txRes));
199-
200198
} catch (error) {
201199
console.error(error.message);
202200
}

examples/getting-started/eth/web3auth.umd.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)