hotfix pix key argument name at wantSellComponent.vue. New addresses from updated smart contract deploy at the testnets
This commit is contained in:
@@ -23,11 +23,13 @@ const offerValue = ref<string>("");
|
||||
const pixKeyBuyer = ref<string>("");
|
||||
|
||||
// Verificar tipagem
|
||||
const approveOffer = async (args: { offer: string; pixKey: string }) => {
|
||||
const approveOffer = async (args: { offer: string; postProcessedPixKey: string }) => {
|
||||
loading.value = true;
|
||||
try {
|
||||
console.log(args)
|
||||
offerValue.value = args.offer;
|
||||
pixKeyBuyer.value = args.pixKey;
|
||||
pixKeyBuyer.value = args.postProcessedPixKey;
|
||||
console.log(pixKeyBuyer, pixKeyBuyer.value)
|
||||
await approveTokens(args.offer);
|
||||
flowStep.value = Step.Network;
|
||||
loading.value = false;
|
||||
@@ -41,7 +43,9 @@ const approveOffer = async (args: { offer: string; pixKey: string }) => {
|
||||
const sendNetwork = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
console.log(offerValue.value, pixKeyBuyer.value)
|
||||
if (offerValue.value && pixKeyBuyer.value) {
|
||||
console.log("entrou no if")
|
||||
await addDeposit(String(offerValue.value), pixKeyBuyer.value);
|
||||
flowStep.value = Step.Sell;
|
||||
loading.value = false;
|
||||
|
||||
Reference in New Issue
Block a user