Demonstrates how to transfer ownership of a Run Token.
nvm use
npm -i
Create a .env
, add the following:
PURSE
- the private key of the purse used to pay for transactions. This may be the same asOWNER
.FIRST_OWNER
- the private key of the owner who will be the initial owner of the Token.SECOND_OWNER_WALLET
- the wallet address of the owner post-transfer of ownership.
- Change any of the token attributes in
AsdfToken.js
node 1_deployMint.js
will deploy the class. Save the outputdeployedClassLocation
.- Optionally edit
1_deployMint.js
to runmint()
if you want to increase the original supply
- Optionally edit
- open
2_upgrade.js
and set the value oflocation
todeployedClassLocation
or the location output frommint()
. Runnode 2_upgrade.js
. Save the outputdeployedLocation
. - open
3_transferOwnership.js
and set the value oflocation
todeployedLocation
value returned from upgrading. Runnode 3_transferOwnership.js
.
Use whats on chain or run explorer to validate the change of ownership