How to connect with contract deployed on matic test network in nodeJS

I have deployed a smart contract on matic test network using truffle.

Now in my nodeJS application i need to interact with my contract and call the methods. Below is my code to get my contract instance and call its methods but i am not able to call the method.

const Web3 = require('web3');
var config = require('./config.js');
const MATIC_TESTNET = "https://testnet.matic.network";
const web3 = new Web3(new Web3.providers.HttpProvider(MATIC_TESTNET));
web3.eth.defaultAccount = config.STACKS_OWNER_ACCOUNT;
const biddingStorageContract = new web3.eth.Contract(config.BIDDING_STORAGE_CONTRACT_ABI, 

config.BIDDING_STORAGE_ADDRESS);
const txOptions = {from: config.STACKS_OWNER_ACCOUNT};

biddingStorageContract.methods.isBiddingManager(config.BIDDING_MANAGER_ADDRESS).call(txOptions).then((err,result) => {
	console.log(result);
});

Is the method correct for interacting with contract?

Please share the config file as well

Contents of config file:
module.exports = {
BIDDING_MANAGER_ADDRESS: ‘0xbe1996fd7be170cf6fc08c194ee3d59d6489cb3f’,
BIDDING_MANAGER_CONTRACT_ABI: [{“constant”:false,“inputs”:[],“name”:“unpause”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x3f4ba83a”},{“constant”:true,“inputs”:[{“name”:“account”,“type”:“address”}],“name”:“isPauser”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x46fbf68e”},{“constant”:true,“inputs”:[],“name”:“paused”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x5c975abb”},{“inputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x6ef8d66d”,“constant”:false,“name”:“renouncePauser”,“outputs”:[]},{“inputs”:[],“name”:“renounceOwnership”,“type”:“function”,“signature”:“0x715018a6”,“constant”:false,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”},{“inputs”:[{“name”:“account”,“type”:“address”}],“name”:“addPauser”,“type”:“function”,“signature”:“0x82dc1ec4”,“constant”:false,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”},{“constant”:false,“inputs”:[],“name”:“pause”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x8456cb59”},{“constant”:true,“inputs”:[],“name”:“owner”,“outputs”:[{“name”:"",“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x8da5cb5b”},{“constant”:true,“inputs”:[],“name”:“isOwner”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x8f32d59b”},{“constant”:false,“inputs”:[{“name”:“newOwner”,“type”:“address”}],“name”:“transferOwnership”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xf2fde38b”},{“inputs”:[{“name”:"_stacksWalletAddress",“type”:“address”},{“name”:"_multisigWalletFactoryAddress",“type”:“address”},{“name”:"_tokenAddress",“type”:“address”}],“payable”:false,“stateMutability”:“nonpayable”,“type”:“constructor”,“signature”:“constructor”},{“inputs”:[{“indexed”:false,“name”:“biddingId”,“type”:“string”},{“indexed”:false,“name”:“pricePerDisplay”,“type”:“uint256”},{“indexed”:false,“name”:“totalBudget”,“type”:“uint256”},{“indexed”:false,“name”:“advertiserId”,“type”:“string”},{“indexed”:false,“name”:“routerId”,“type”:“uint256”},{“indexed”:false,“name”:“biddingWalletAddress”,“type”:“address”}],“name”:“PublishADForApproval”,“type”:“event”,“signature”:“0x7d6c363fa048a2a83f2d67c5e461c57ddccb81bd7495131e5be88bc7a67a2c43”,“anonymous”:false},{“inputs”:[{“name”:“biddingId”,“type”:“string”,“indexed”:false},{“indexed”:false,“name”:“advertiserId”,“type”:“string”},{“indexed”:false,“name”:“pricePerDisplay”,“type”:“uint256”},{“indexed”:false,“name”:“totalBudget”,“type”:“uint256”}],“name”:“ApproveBidding”,“type”:“event”,“signature”:“0xc4706d34cac59006332178ed5963761f0717ff00de2ed1d3abb06683c2dcf6dc”,“anonymous”:false},{“inputs”:[{“indexed”:false,“name”:“biddingId”,“type”:“string”},{“indexed”:false,“name”:“tokenRefundedToAdvertiser”,“type”:“uint256”},{“indexed”:false,“name”:“penaltyTokens”,“type”:“uint256”}],“name”:“CancelBidding”,“type”:“event”,“signature”:“0x91e5dbec0abb103e189927ac1ab656a0e189e376ab0ad8f4de75251eb8e6b589”,“anonymous”:false},{“inputs”:[{“indexed”:false,“name”:“biddingId”,“type”:“string”},{“indexed”:false,“name”:“tokensRefunded”,“type”:“uint256”}],“name”:“RejectBidding”,“type”:“event”,“signature”:“0xb00e1ffa826e4e39d7c16aae4eabecaad9b43ebdcee81b71812e3573e35b6665”,“anonymous”:false},{“inputs”:[{“name”:“biddingId”,“type”:“string”,“indexed”:false},{“indexed”:false,“name”:“remainingBudget”,“type”:“uint256”},{“indexed”:false,“name”:“finalViewCount”,“type”:“uint256”},{“indexed”:false,“name”:“sender”,“type”:“address”}],“name”:“IncrementADViewCount”,“type”:“event”,“signature”:“0xd0dc603f46de7c9303e34e872325198571acae702daa600dc59e5b478aff2ecd”,“anonymous”:false},{“inputs”:[{“name”:“lockedTokenHolder”,“type”:“address”,“indexed”:true},{“indexed”:true,“name”:“beneficiary”,“type”:“address”},{“indexed”:false,“name”:“releaseTime”,“type”:“uint256”}],“name”:“LockToken”,“type”:“event”,“signature”:“0xac03d6ce4d071dbe5b32b03d1eae86af528a330cb6fd2e4df3ecc0ba80d6fdb5”,“anonymous”:false},{“inputs”:[{“name”:“biddingId”,“type”:“string”,“indexed”:false},{“indexed”:true,“name”:“advertiserAddress”,“type”:“address”},{“indexed”:false,“name”:“balance”,“type”:“uint256”}],“name”:“ClaimUnusedBiddingTokens”,“type”:“event”,“signature”:“0x7a2bb8ba0864b9ce961ebe440a392c91b7c8e9057723b20a71abfc9382121673”,“anonymous”:false},{“inputs”:[{“name”:“account”,“type”:“address”,“indexed”:false}],“name”:“Paused”,“type”:“event”,“signature”:“0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258”,“anonymous”:false},{“inputs”:[{“name”:“account”,“type”:“address”,“indexed”:false}],“type”:“event”,“signature”:“0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa”,“anonymous”:false,“name”:“Unpaused”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“account”,“type”:“address”}],“name”:“PauserAdded”,“type”:“event”,“signature”:“0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“account”,“type”:“address”}],“name”:“PauserRemoved”,“type”:“event”,“signature”:“0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“previousOwner”,“type”:“address”},{“indexed”:true,“name”:“newOwner”,“type”:“address”}],“name”:“OwnershipTransferred”,“type”:“event”,“signature”:“0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0”},{“inputs”:[{“name”:“biddingStorageAddress”,“type”:“address”}],“name”:“setBiddingStorage”,“type”:“function”,“signature”:“0xf48aeac7”,“constant”:false,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”},{“inputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“pricePerDisplay”,“type”:“uint256”},{“name”:“totalBudget”,“type”:“uint256”},{“name”:“advertiserId”,“type”:“string”},{“name”:“routerId”,“type”:“uint256”}],“name”:“publishADForApproval”,“type”:“function”,“signature”:“0x25f4d547”,“constant”:false,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“approveBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x3b853d21”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“cancelBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xa6d9fa4e”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“rejectBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x83ff5561”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“incrementAdViewCount”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x5d6b2cf3”},{“constant”:false,“inputs”:[{“name”:“beneficiary”,“type”:“address”},{“name”:“releaseTime”,“type”:“uint256”}],“name”:“lockTokens”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xb1c25586”},{“constant”:true,“inputs”:[{“name”:“beneficiary”,“type”:“address”}],“name”:“getLockedToken”,“outputs”:[{“name”:“lockedTokenAddress”,“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x560ef1bf”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“claimUnusedBiddingTokens”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x6e340219”}],
BIDDING_STORAGE_ADDRESS: ‘0x9b393a3882cb6b6f9e77651c3898065295cecfbb’,
BIDDING_STORAGE_CONTRACT_ABI: [{“constant”:true,“inputs”:[{“name”:"",“type”:“uint256”}],“name”:“advertiserList”,“outputs”:[{“name”:"",“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x3a772ef3”},{“constant”:false,“inputs”:[],“name”:“unpause”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x3f4ba83a”},{“constant”:true,“inputs”:[{“name”:“account”,“type”:“address”}],“name”:“isPauser”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x46fbf68e”},{“constant”:true,“inputs”:[{“name”:"",“type”:“uint256”}],“name”:“routerList”,“outputs”:[{“name”:"",“type”:“uint256”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x4e53c13e”},{“constant”:true,“inputs”:[{“name”:"",“type”:“uint256”}],“name”:“routers”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x4e9c1118”},{“constant”:true,“inputs”:[{“name”:"",“type”:“address”}],“name”:“advertisers”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x5b801007”},{“constant”:true,“inputs”:[],“name”:“paused”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x5c975abb”},{“constant”:true,“inputs”:[{“name”:"",“type”:“address”}],“name”:“blacklistAddressMap”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x665713a5”},{“constant”:false,“inputs”:[],“name”:“renouncePauser”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x6ef8d66d”},{“constant”:false,“inputs”:[],“name”:“renounceOwnership”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x715018a6”},{“constant”:false,“inputs”:[{“name”:“account”,“type”:“address”}],“name”:“addPauser”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x82dc1ec4”},{“constant”:false,“inputs”:[],“name”:“pause”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x8456cb59”},{“constant”:true,“inputs”:[{“name”:"",“type”:“address”}],“name”:“stacksOwners”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x8a941f6f”},{“constant”:true,“inputs”:[],“name”:“owner”,“outputs”:[{“name”:"",“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x8da5cb5b”},{“constant”:true,“inputs”:[],“name”:“isOwner”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x8f32d59b”},{“constant”:true,“inputs”:[{“name”:"",“type”:“uint256”}],“name”:“stacksOwnersList”,“outputs”:[{“name”:"",“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x92159c53”},{“constant”:true,“inputs”:[{“name”:"",“type”:“uint256”}],“name”:“biddingIdArray”,“outputs”:[{“name”:"",“type”:“string”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xb7c0a0d1”},{“constant”:true,“inputs”:[{“name”:"",“type”:“address”}],“name”:“routerOwners”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xd57f088b”},{“constant”:false,“inputs”:[{“name”:“newOwner”,“type”:“address”}],“name”:“transferOwnership”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xf2fde38b”},{“inputs”:[{“name”:“managerAddress”,“type”:“address”}],“payable”:false,“stateMutability”:“nonpayable”,“type”:“constructor”,“signature”:“constructor”},{“anonymous”:false,“inputs”:[{“indexed”:false,“name”:“account”,“type”:“address”}],“name”:“Paused”,“type”:“event”,“signature”:“0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258”},{“anonymous”:false,“inputs”:[{“indexed”:false,“name”:“account”,“type”:“address”}],“name”:“Unpaused”,“type”:“event”,“signature”:“0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“account”,“type”:“address”}],“name”:“PauserAdded”,“type”:“event”,“signature”:“0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“account”,“type”:“address”}],“name”:“PauserRemoved”,“type”:“event”,“signature”:“0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e”},{“anonymous”:false,“inputs”:[{“indexed”:true,“name”:“previousOwner”,“type”:“address”},{“indexed”:true,“name”:“newOwner”,“type”:“address”}],“name”:“OwnershipTransferred”,“type”:“event”,“signature”:“0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0”},{“constant”:false,“inputs”:[{“name”:“managerAddress”,“type”:“address”}],“name”:“addBiddingManager”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x05585777”},{“constant”:true,“inputs”:[{“name”:“managerAddress”,“type”:“address”}],“name”:“isBiddingManager”,“outputs”:[{“name”:“result”,“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x84c75f2f”},{“constant”:false,“inputs”:[{“name”:“blacklistAddress”,“type”:“address”}],“name”:“addBlacklistAddress”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x900ce6ba”},{“constant”:true,“inputs”:[{“name”:“blacklistAddress”,“type”:“address”}],“name”:“isBlacklistAddress”,“outputs”:[{“name”:“result”,“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x44e854bc”},{“constant”:false,“inputs”:[{“name”:“blacklistAddress”,“type”:“address”}],“name”:“removeBlacklistAddress”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x2d405ede”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“stakeHolderAddress”,“type”:“address”}],“name”:“addBiddingStakeHolder”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xbef926d6”},{“constant”:true,“inputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“owner”,“type”:“address”}],“name”:“isBiddingStakeHolder”,“outputs”:[{“name”:“result”,“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xf9e42673”},{“constant”:false,“inputs”:[{“name”:“owner”,“type”:“address”}],“name”:“addStacksOwner”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x823986cb”},{“constant”:false,“inputs”:[{“name”:“owner”,“type”:“address”}],“name”:“removeStacksOwner”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xb0b46494”},{“constant”:false,“inputs”:[{“name”:“advertiser”,“type”:“address”},{“name”:“advertiserId”,“type”:“string”}],“name”:“addAdvertiser”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x25694d37”},{“constant”:false,“inputs”:[{“name”:“routerOwner”,“type”:“address”}],“name”:“addRouterOwner”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xa1d09949”},{“constant”:false,“inputs”:[{“name”:“advertiser”,“type”:“address”},{“name”:“advertiserId”,“type”:“string”}],“name”:“removeAdvertiser”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x626c599b”},{“constant”:false,“inputs”:[{“name”:“routerOwner”,“type”:“address”}],“name”:“removeRouterOwner”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xe1d25b4e”},{“constant”:false,“inputs”:[{“name”:“routerId”,“type”:“uint256”}],“name”:“addRouter”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x873e66df”},{“constant”:false,“inputs”:[{“name”:“routerId”,“type”:“uint256”}],“name”:“removeRouter”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x72882732”},{“constant”:true,“inputs”:[{“name”:“routerId”,“type”:“uint256”}],“name”:“getRouter”,“outputs”:[{“name”:“routerAddress”,“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xa4424cf4”},{“constant”:true,“inputs”:[{“name”:“advertiserId”,“type”:“string”}],“name”:“getAdvertiser”,“outputs”:[{“name”:“advertiserAddress”,“type”:“address”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x2a378081”},{“constant”:true,“inputs”:[],“name”:“getStacksOwner”,“outputs”:[{“name”:"",“type”:“address[]”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xfe9de898”},{“constant”:true,“inputs”:[{“name”:“owner”,“type”:“address”}],“name”:“isStacksOwner”,“outputs”:[{“name”:"",“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x687602f9”},{“constant”:true,“inputs”:[],“name”:“getAdvertisers”,“outputs”:[{“name”:"",“type”:“address[]”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xec547d80”},{“constant”:true,“inputs”:[],“name”:“getRouters”,“outputs”:[{“name”:"",“type”:“uint256[]”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0xf88c31ce”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“pricePerDisplay”,“type”:“uint256”},{“name”:“totalBudget”,“type”:“uint256”},{“name”:“advertiserId”,“type”:“string”},{“name”:“advertiserAddress”,“type”:“address”},{“name”:“routerId”,“type”:“uint256”},{“name”:“biddingWalletAddress”,“type”:“address”}],“name”:“newBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0xf1fdb394”},{“constant”:true,“inputs”:[{“name”:"_biddingId",“type”:“string”}],“name”:“getBidding”,“outputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“advertiserId”,“type”:“string”},{“name”:“routerId”,“type”:“uint256”},{“name”:“uintArray”,“type”:“uint256[4]”},{“name”:“advertiserAddress”,“type”:“address”},{“name”:“biddingWalletAddress”,“type”:“address”},{“name”:“isValid”,“type”:“bool”}],“payable”:false,“stateMutability”:“view”,“type”:“function”,“signature”:“0x75202e29”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“approveBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x3b853d21”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”},{“name”:“advertiserAddress”,“type”:“address”}],“name”:“cancelBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x87a7f9ff”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“rejectBidding”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x83ff5561”},{“constant”:false,“inputs”:[{“name”:“biddingId”,“type”:“string”}],“name”:“incrementAdViewCount”,“outputs”:[],“payable”:false,“stateMutability”:“nonpayable”,“type”:“function”,“signature”:“0x5d6b2cf3”}],
STACKS_OWNER_ACCOUNT: “0x256144a60f34288F7b03D345F8Cb256C502e0f2C”
};

@sachintomar I tried setting up your config and script, however since the config is not formatted properly I could not run it. I would suggest you to check the formatting of config file as its currently an invalid JS file. Regarding contract call, interacting with contracts deployed on matic is exactly the same as ethereum chain so following the example given here should solve your issues(if any).

Hey i found out i was passing wrong number of arguments in the callback function and was checking the second argument instead of first. Its working fine now.
Correct way to call a view function would be

biddingStorageContract.methods.isBiddingManager(config.BIDDING_MANAGER_ADDRESS).call(txOptions).then((result) => {
	console.log(result);
});
2 Likes