I get the unknown account error when executing smart contract on the main network. it works well on the local network. On the main network on the other hand when i send funds to the smart contract it goes well but when i call the smart contract i get the "unknown account" error. Anyone have any ideas why i get that? Thank you

  • 1
    How are you calling the contract, can you show your code? – Jaime Jun 17 '18 at 13:30
  • Possible duplicate of Unknown account error- smart contract – Jesbus Jun 18 '18 at 10:52
  • function confirm_transaction (address buyer, string trxId) public onlyOwner returns (bool) { if(trx_status[buyer][trxId] == false) { seller_address = trx_seller[buyer][trxId]; amount_transaction = trx_amount[buyer][trxId]; seller_address.transfer(amount_transaction); trx_status[buyer][trxId] = true; emit LogConfirmTransaction(buyer, trxId); } – john3me Jun 18 '18 at 10:56

Your Answer

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

Browse other questions tagged or ask your own question.