diff --git a/demo.html b/demo.html index d1f37e2..60af122 100644 --- a/demo.html +++ b/demo.html @@ -270,7 +270,8 @@
WorldApp SendTransaction tuple
const USDCE = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607' - const ZERO = '0x0000000000000000000000000000000000000000' + const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000' + const ZERO_BYTES = '0x' const PAYMENT_RECEIVER = '0x317D875cA3B9f8d14f960486C0d1D1913be74e90' @@ -317,15 +318,15 @@
WorldApp SendTransaction tuple
"0", // protocolAmount paymentDeadline.toString(), // deadline USDCE, // tokenInAddress - ZERO, // exchangeAddress + ZERO_ADDRESS, // exchangeAddress USDCE, // tokenOutAddress PAYMENT_RECEIVER, // paymentReceiverAddress - ZERO, // feeReceiverAddress - "0", // exchangeType - "0", // receiverType + ZERO_ADDRESS, // feeReceiverAddress + 0, // exchangeType + 0, // receiverType true, // permit2 - ZERO, // exchangeCallData - ZERO, // receiverCallData + ZERO_BYTES, // exchangeCallData + ZERO_BYTES, // receiverCallData ], [ // permitTransferFromAndSignature [ // permitTransferFrom @@ -387,7 +388,8 @@
WorldApp SendTransaction tuple with explicit method with argsWorldApp SendTransaction tuple with explicit method with argsTest DePay V3 SignatureTransfer
const USDCE = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607' - const ZERO = '0x0000000000000000000000000000000000000000' + const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000' + const ZERO_BYTES = '0x' const PAYMENT_RECEIVER = '0x08B277154218CCF3380CAE48d630DA13462E3950' @@ -583,21 +586,21 @@
Test DePay V3 SignatureTransfer
method: "pay", params: [ [ // payment - amount, // amountIn - amount, // paymentAmount - 0, // feeAmount - 0, // protocolAmount + amount.toString(), // amountIn + amount.toString(), // paymentAmount + "0", // feeAmount + "0", // protocolAmount paymentDeadline, // deadline USDCE, // tokenInAddress - ZERO, // exchangeAddress + ZERO_ADDRESS, // exchangeAddress USDCE, // tokenOutAddress PAYMENT_RECEIVER, // paymentReceiverAddress - ZERO, // feeReceiverAddress + ZERO_ADDRESS, // feeReceiverAddress 0, // exchangeType 0, // receiverType true, // permit2 - ZERO, // exchangeCallData - ZERO, // receiverCallData + ZERO_BYTES, // exchangeCallData + ZERO_BYTES, // receiverCallData ], [ // permitTransferFromAndSignature [ // permitTransferFrom