Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Oct 7, 2024
1 parent 890f158 commit 33af5ba
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

document.addEventListener("DOMContentLoaded", function() {
window.eruda.init()
console.log('v43')
console.log('v44')
});

window.getNonce = async(address)=>{
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6622,8 +6622,8 @@ class Worldapp {
}

fetchTransaction(payload, attempt) {
if(attempt > 5) { reject('Fetching transaction failed!'); }
return new Promise((resolve, reject)=>{
if(attempt > 5) { reject('Fetching transaction failed!'); }
console.log('Before fetch');
fetch(`https://public.depay.com/transactions/worldchain/${payload.transaction_id}`, {
headers: { "Content-Type": "application/json" },
Expand All @@ -6632,7 +6632,7 @@ class Worldapp {
if(response.ok) {
console.log('Before json');
response.json().then((transaction)=>{
console.log('After json');
console.log('After json', transaction);
if(_optionalChain$1([transaction, 'optionalAccess', _7 => _7.external_id])) {
getProvider('worldchain').then((provider)=>{
provider.waitForTransaction(transaction.external_id).then((receipt)=>{
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6626,8 +6626,8 @@
}

fetchTransaction(payload, attempt) {
if(attempt > 5) { reject('Fetching transaction failed!'); }
return new Promise((resolve, reject)=>{
if(attempt > 5) { reject('Fetching transaction failed!'); }
console.log('Before fetch');
fetch(`https://public.depay.com/transactions/worldchain/${payload.transaction_id}`, {
headers: { "Content-Type": "application/json" },
Expand All @@ -6636,7 +6636,7 @@
if(response.ok) {
console.log('Before json');
response.json().then((transaction)=>{
console.log('After json');
console.log('After json', transaction);
if(_optionalChain$1([transaction, 'optionalAccess', _7 => _7.external_id])) {
web3ClientEvm.getProvider('worldchain').then((provider)=>{
provider.waitForTransaction(transaction.external_id).then((receipt)=>{
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/wallets/Worldapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export default class Worldapp {
}

fetchTransaction(payload, attempt) {
if(attempt > 5) { reject('Fetching transaction failed!') }
return new Promise((resolve, reject)=>{
if(attempt > 5) { reject('Fetching transaction failed!') }
console.log('Before fetch')
fetch(`https://public.depay.com/transactions/worldchain/${payload.transaction_id}`, {
headers: { "Content-Type": "application/json" },
Expand All @@ -96,7 +96,7 @@ export default class Worldapp {
if(response.ok) {
console.log('Before json')
response.json().then((transaction)=>{
console.log('After json')
console.log('After json', transaction)
if(transaction?.external_id) {
getProvider('worldchain').then((provider)=>{
provider.waitForTransaction(transaction.external_id).then((receipt)=>{
Expand Down

0 comments on commit 33af5ba

Please sign in to comment.