I am building an altcoin contract using zeppelin library to make it upgradeable using a proxy. I also use a Ownable cotract that allows me to pass ownership to another address in 2 phases. Transfer Ownership with the address as param and Claim Ownership which must be called with the previously address. I am using Ganache app on ubuntu, having 10 unlocked accounts. The issue lays in this code:
Coin.deployed().then(coin => {
TokenProxy.deployed().then(function(proxy) {
coin.transferOwnership(proxy.address, {from:owner}).then(function(res) {
proxy.claimOwnership({from: proxy.address}).then(function (res) {
console.log("Done!");
}).catch(function (e) {console.log(e);});
}).catch(function (e) {console.log(e);});
})
})
The problem is that the proxy address will not be one of those 10 in the list so I end up with
Error: sender account not recognized
Basically I am not sure if it's part of the ganache node (but if it is, for sure it is locked).
I tried to unlock it using web3 and a couple off different things. Nothing helped.