0

I'm trying to deploy via Infura to ropsten and get this error.

The local deployment works without a hitch.

Linking SafeMath to contracts
Error encountered, bailing. Network state unknown. Review successful transactions manually.
undefined
truffle(ropsten)> Error: Cannot link library: SafeMath has no address. Has it been deployed?

The relevant lines from the deployment script are:

return deployer.deploy(SafeMath, {from: owner}).then(() => {
    console.log("Linking SafeMath to contracts");
    return deployer.link(SafeMath, [Cx1, Cx2]).then(() => {
        ...
    });
    ...
});

Am running from within truffle console --network ropsten with ropsten configured for Infura. The migration of the migration contract seems to work fine.

I'm doing doing a deploy.

It seems that unlike in local deployments, truffle is not updating the .json files. Could this be the problem?

1

Had nothing to do with the above.

Was all about the account string being mixed case - which allows a kind of internal check-summing - and seems Truffle + Infura doesn't support this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.