CPChain / chain

Mirror of https://bitbucket.org/cpchain/chain
GNU General Public License v3.0
51 stars 10 forks source link

ValueError: {'code': -32000, 'message': 'invalid sender'} #78

Closed Mateus224 closed 5 years ago

Mateus224 commented 5 years ago

Where does the bug occur? chain

Describe the bug During i was writing an easy smart contract i get this error: ValueError: {'code': -32000, 'message': 'invalid sender'}

After I get this error i checked if i can write an easy script for transactions like i did it on testNet without errors. But i get the same error.

To Reproduce For the transaction code i used the code from the docs: https://github.com/CPChain/chain/blob/master/docs/quickstart/send_rawTransaction.py

I thought maybe the chainId changed after testNet because i remember the ChainId was 42 too but in the documentation is written that the mainNet ChainID is still 42: https://docs.cpchain.io/preliminaries/configuration.html

on the other hand i saw here in the documentation that you didnt wrote the ChainId into the rawTransaction after i removed it the chainId i get a gas error https://docs.cpchain.io/api/cpc_fusion.html (under Cpc.sendRawTransaction(raw_transaction))

So yeah in the testNet i didnt had this problems i could easy upload a greetings smart contract and sent CPC testTokens now in the mainnet i get this strange error in every script i wrote.