Closed robinportigliatti closed 2 years ago
@robinportigliatti Thanks for reaching out. I think I can help you debug here. It looks like in this case the message isn't entirely clear. It is the value of your fields that are problematic, not the fields themselves. You are passing them in as string
but they need to be int
.
Give it a shot with int
values instead:
transaction = {
'data': data,
'gas': 3000000,
'gasPrice': 70000000000,
'nonce': count
}
I believe this is the error here. I'm going to close this but feel free to re-open if that did not resolve your issue. I'd encourage you to join the discord if you have any usage questions or anything else. We have a great supportive community over there happy to answer and ask questions as things pop up. Good luck!
@fselmo thank you, it worked, now I have to find why my contract creation is in error
I will join the discord, it might be better you are right
from python
)pip freeze
outputWhat was wrong?
Hello,
Juste made my first NFT today as a POC :D. But my application is in python (Django) and the migration and mint process are in NodeJs... So I tried your solution but I found some difficulty by deploying my first contract.
When I run the following code I get the following error :
Transaction had invalid fields: {'gas': '3000000', 'gasPrice': '70000000000'}
But when I remove the invalid fields I get these error :Transaction must include these fields: {'gasPrice', 'gas'}
Do you think it is due to the fact I used arbitrary value ?
Robin,
The code which produced the error
https://rinkeby.infura.io/v3/{project_id}