Skip to content

Commit

Permalink
create mock for arthera network (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Apr 15, 2024
2 parents b20b139 + e3ecb3e commit b550c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/campaign.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@ exports.campaignAllowance = async (req, res) => {

exports.artheraApproval = async (req, res) => {
try {
let tokenAddress = req.body.tokenAddress
let tokenAddress = process.env.ARTHERA_MOCK_TOKEN
let campaignAddress = req.body.campaignAddress
let account = await getAccount(req, res) // FIXED
let allowance = await artheraApprove(
Expand All @@ -2451,7 +2451,7 @@ exports.artheraAllow = async (req, res) => {
try {
let campaignAddress = req.body.campaignAddress
let amount = req.body.amount
let polygonToken = req.body.tokenAddress
let polygonToken = process.env.ARTHERA_MOCK_TOKEN
var cred = await unlockArthera(req, res)
if (!cred) return

Expand Down

0 comments on commit b550c02

Please sign in to comment.