-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCP Red Dragon/Turret Whitelist Example + Smart Gate Corp Whitelist #52
base: develop
Are you sure you want to change the base?
Conversation
Unsure if this should be in the example as it adds another layer of complexity.
console.log("Can Jump:", smartGate.canJump(1234, sourceGateId, destinationGateId)); | ||
|
||
console.log("-------------------\nTESTING CORRECT CORP"); | ||
console.log("Can Jump:", smartGate.canJump(666666666, sourceGateId, destinationGateId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we bring the character id from .env ?
smart-turret/packages/contracts/script/ConfigureSmartTurret.s.sol
Outdated
Show resolved
Hide resolved
smart-turret/packages/contracts/src/systems/SmartTurretSystem.sol
Outdated
Show resolved
Hide resolved
smart-turret/packages/contracts/src/systems/SmartTurretSystem.sol
Outdated
Show resolved
Hide resolved
|
||
//Check to see if the address exists | ||
for(var i = 0; i < data.length; i++){ | ||
if(data[i].name == characterNameInputRef.current){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you go by characterId address instead of name ? Or possibly enter characterName or characterId or characterAddress
Adding to the Turret example to create a whitelist system accompanied with a client for altering and viewing the current whitelist.