Skip to content

Commit

Permalink
v13.12.1: no simple transfer in World App
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Oct 7, 2024
1 parent f34213a commit 93421ec
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -50653,7 +50653,7 @@ const getPermit2SignatureTransferNonce = async({ address, blockchain })=>{
};

const transactionParams = async ({ paymentRoute, options })=> {
if(paymentRoute.directTransfer && !paymentRoute.fee) {
if(paymentRoute.directTransfer && !paymentRoute.fee && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) !== 'World App') {
if(paymentRoute.toToken.address == Blockchains[paymentRoute.blockchain].currency.address) {
return undefined
} else { // standard token transfer
Expand Down Expand Up @@ -50687,7 +50687,7 @@ const transactionParams = async ({ paymentRoute, options })=> {
}
}
let params;
if(options && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){
if(options && _optionalChain$1([options, 'optionalAccess', _3 => _3.wallet, 'optionalAccess', _4 => _4.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){

const permitDeadline = Math.floor(Date.now() / 1000) + 30 * 60;
const nonce = getPermit2SignatureTransferNonce({ blockchain: paymentRoute.blockchain, address: paymentRoute.fromAddress });
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ const getPermit2SignatureTransferNonce = async({ address, blockchain })=>{
};

const transactionParams = async ({ paymentRoute, options })=> {
if(paymentRoute.directTransfer && !paymentRoute.fee) {
if(paymentRoute.directTransfer && !paymentRoute.fee && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) !== 'World App') {
if(paymentRoute.toToken.address == Blockchains[paymentRoute.blockchain].currency.address) {
return undefined
} else { // standard token transfer
Expand Down Expand Up @@ -2251,7 +2251,7 @@ const transactionParams = async ({ paymentRoute, options })=> {
}
}
let params;
if(options && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){
if(options && _optionalChain$1([options, 'optionalAccess', _3 => _3.wallet, 'optionalAccess', _4 => _4.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){

const permitDeadline = Math.floor(Date.now() / 1000) + 30 * 60;
const nonce = getPermit2SignatureTransferNonce({ blockchain: paymentRoute.blockchain, address: paymentRoute.fromAddress });
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -50659,7 +50659,7 @@
};

const transactionParams = async ({ paymentRoute, options })=> {
if(paymentRoute.directTransfer && !paymentRoute.fee) {
if(paymentRoute.directTransfer && !paymentRoute.fee && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) !== 'World App') {
if(paymentRoute.toToken.address == Blockchains__default["default"][paymentRoute.blockchain].currency.address) {
return undefined
} else { // standard token transfer
Expand Down Expand Up @@ -50693,7 +50693,7 @@
}
}
let params;
if(options && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){
if(options && _optionalChain$1([options, 'optionalAccess', _3 => _3.wallet, 'optionalAccess', _4 => _4.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){

const permitDeadline = Math.floor(Date.now() / 1000) + 30 * 60;
const nonce = getPermit2SignatureTransferNonce({ blockchain: paymentRoute.blockchain, address: paymentRoute.fromAddress });
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@
};

const transactionParams = async ({ paymentRoute, options })=> {
if(paymentRoute.directTransfer && !paymentRoute.fee) {
if(paymentRoute.directTransfer && !paymentRoute.fee && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) !== 'World App') {
if(paymentRoute.toToken.address == Blockchains__default["default"][paymentRoute.blockchain].currency.address) {
return undefined
} else { // standard token transfer
Expand Down Expand Up @@ -2256,7 +2256,7 @@
}
}
let params;
if(options && _optionalChain$1([options, 'optionalAccess', _ => _.wallet, 'optionalAccess', _2 => _2.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){
if(options && _optionalChain$1([options, 'optionalAccess', _3 => _3.wallet, 'optionalAccess', _4 => _4.name]) === 'World App' && paymentRoute.blockchain === 'worldchain'){

const permitDeadline = Math.floor(Date.now() / 1000) + 30 * 60;
const nonce = getPermit2SignatureTransferNonce({ blockchain: paymentRoute.blockchain, address: paymentRoute.fromAddress });
Expand Down
2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments-evm",
"moduleName": "Web3Payments",
"version": "13.12.0",
"version": "13.12.1",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments",
"moduleName": "Web3Payments",
"version": "13.12.0",
"version": "13.12.1",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments-solana",
"moduleName": "Web3Payments",
"version": "13.12.0",
"version": "13.12.1",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/evm/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const getPermit2SignatureTransferNonce = async({ address, blockchain })=>{
}

const transactionParams = async ({ paymentRoute, options })=> {
if(paymentRoute.directTransfer && !paymentRoute.fee) {
if(paymentRoute.directTransfer && !paymentRoute.fee && options?.wallet?.name !== 'World App') {
if(paymentRoute.toToken.address == Blockchains[paymentRoute.blockchain].currency.address) {
return undefined
} else { // standard token transfer
Expand Down

0 comments on commit 93421ec

Please sign in to comment.