blockchain-carbon-accounting
blockchain-carbon-accounting copied to clipboard
fix issuer address when tokenizing supply chain emissions
From #436, if you tokenize emissions from supply chain emissions,
in .env ETH_ISSUER_ACCT=0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC ETH_ISSUEE_ACCT=0x70997970c51812dc3a010c7d01b50e0d17dc79c8
ups.js output "issuer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", "issuee": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
dapp Issuer 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 Issuee 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
The issuer is 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 which is the account that deployed the contract:
Deploying NetEmissionsTokenNetwork with account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 NetEmissionsTokenNetwork deployed to: 0x610178dA211FEF7D417bC0e6FeD39F05609AD788 But if you login as 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC (the local emissions auditor) in the dapp and then issue the tokens, then you'll see that the tokens are issued by 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC