-
-
Save jamiew/080c2e058356c243be768b83df8fd9fc to your computer and use it in GitHub Desktop.
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
describe("GawdsOnchain", function () { | |
let gawds: GawdsOnchain; | |
beforeEach(async function () { | |
const contractName = "GawdsOnchain" | |
const GawdsOnchain = await ethers.getContractFactory(contractName); | |
gawds = await GawdsOnchain.deploy() as GawdsOnchain; | |
await gawds.deployed(); | |
}); | |
async function debugGawd(id:number, contract:any) { | |
console.log("--- gawd ---"); | |
console.log("ID:", id); | |
console.log("Name:", await contract.getGawdName(id)); | |
console.log("Hash:", await contract.getGawdHash(id)); | |
console.log("Powers:", await contract.getGawdPowers(id)); | |
console.log("Sets:", await contract.getGawdSets(id)); | |
console.log("Dominant Power:", await contract.getDominantPower(id)); | |
console.log("Cult:", await contract.getCultName(id)); | |
console.log("--- traits ---"); | |
console.log("Realm:", await contract.getGawdRealm(id)); | |
console.log("Aura(s):", await contract.getGawdAuras(id)); | |
console.log("Composition:", await contract.getGawdComposition(id)); | |
console.log("Oculus:", await contract.getGawdOculus(id)); | |
console.log("Iris:", await contract.getGawdIris(id)); | |
console.log("Accent(s):", await contract.getGawdAccents(id)); | |
console.log("Conveyence:", await contract.getGawdConveyence(id)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment