-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
: update scripts
- Loading branch information
Daniel Lima
committed
May 10, 2024
1 parent
f7836bc
commit 4827b2a
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { print, colors } from '../../utils/misc' | ||
import { callContractFunction } from '../../utils/write-contract' | ||
import addresses, { Network } from '../../addresses' | ||
import { network } from 'hardhat' | ||
|
||
const NETWORK = network.name as Network | ||
const CONTRACT_NAME = 'MockERC721' | ||
const CONTRACT_FUNCTION = 'setApprovalForAll' | ||
const FUNCTION_PARAMS = [addresses[NETWORK].NftRentalMarketplace.address, true] | ||
const CUSTOM_CONTRACT_ADDRESS = '0xcB13945Ca8104f813992e4315F8fFeFE64ac49cA' | ||
|
||
async function main() { | ||
await callContractFunction(CONTRACT_NAME, CONTRACT_FUNCTION, FUNCTION_PARAMS, { CUSTOM_CONTRACT_ADDRESS }) | ||
} | ||
|
||
main() | ||
.then(() => { | ||
print(colors.bigSuccess, 'All done!') | ||
}) | ||
.catch(error => { | ||
console.error(error) | ||
process.exitCode = 1 | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters