-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
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,45 @@ | ||
import { Signer } from "ethers"; | ||
import { ethers, network, run } from "hardhat"; | ||
import { itemManagerAlt } from "./helperFunctions"; | ||
import { | ||
bodyWearable, | ||
BodyWearableOutput, | ||
updateSleevesTaskForSvgType, | ||
} from "./svgHelperFunctions"; | ||
|
||
async function main() { | ||
let testing = ["hardhat", "localhost"].includes(network.name); | ||
let signer: Signer; | ||
|
||
const accounts = await ethers.getSigners(); | ||
|
||
if (testing) { | ||
await network.provider.request({ | ||
method: "hardhat_impersonateAccount", | ||
params: [itemManagerAlt], | ||
}); | ||
signer = await ethers.provider.getSigner(itemManagerAlt); | ||
} else if (network.name === "matic") { | ||
signer = accounts[0]; | ||
} else { | ||
throw Error("Incorrect network selected"); | ||
} | ||
|
||
const sleeve = await updateSleevesTaskForSvgType([36], "front"); | ||
const wearableId = 248; | ||
const output: BodyWearableOutput = bodyWearable( | ||
`${wearableId}_UpOnlyShirt`, | ||
"svgItems" | ||
); | ||
|
||
await run("updateSvgs", sleeve); | ||
} | ||
|
||
if (require.main === module) { | ||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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