smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.25k stars 2.94k forks source link

eth_blockNumber keeps rising after ' yarn hardhat node #4958

Open paulcoffee85 opened 1 year ago

paulcoffee85 commented 1 year ago
    Hey, 

I am not sure what I did to solve the error but these were the things I did after running into that error and somehow the issue resolved itself: 1) I manually changed the port settings for live server to 8545 to match the port of my localhost URL which somehow made my live server's port change from 5501 to 8546. I do not understand much about what port is or how it works but I noticed that the port in my transaction details in metamask was showing port as 5500, which was different from the localhost URL's port (8545) so I thought maybe matching the two would resolve the issue. I then changed live server's port setting back to 0. 2) I changed my ethAmount from 77 to 0.1 (I doubt this is the issue, I just tested a fund transaction with the ethAmount set to 77 and the script works) 3) I used Account 1 instead of Account 0 from localhost node (also does not seem to be what was causing the issue since account 0 now works on my end without making any changes to the script) 4) I started up the node before clicking on the "go live" button 5) I also restarted my computer during the process

Not sure how I managed to resolve it but if it matters, all the actions I performed are mentioned above and the only change I made to the scripts was to change the ethAmount from 77 to 0.1.

Originally posted by @Aesthetyx in https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/539#discussioncomment-3018093

paulcoffee85 commented 1 year ago

I tried the above by @Aesthetyx , but to no avail. The following errors occurring after I run 'node. Before I sleep, I wanted to throw this out there, and see what others might have found? If anything.

Account #17: 0xbDA5747bFD65F08deb54cb465eB87D40e51B197E (10000 ETH) Private Key: 0x689af8efa8c651a91ad287602527f3af2fe9f6501a7ac4b061667b5a93e037fd

Account #18: 0xdD2FD4581271e230360230F9337D5c0430Bf44C0 (10000 ETH) Private Key: 0xde9be858da4a475276426320d5e9262ecfc3ba460bfac56360bfa6c4c28b4ee0

Account #19: 0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199 (10000 ETH) Private Key: 0xdf57089febbacf7ba0bc227dafbffa9fc08a93fdc68e1e42411a14efcf23656e

WARNING: These accounts, and their private keys, are publicly known. Any funds sent to them on Mainnet or any other live network WILL BE LOST.

eth_blockNumber Contract deployment: MockV3Aggregator Contract address: 0x5fbdb2315678afecb367f032d93f642f64180aa3 Transaction: 0x6222cf7fcb1e709054071e7e6d479f06901def21aa2c250af59c95ab4b66a5d8 From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 Value: 0 ETH Gas used: 569635 of 569635 Block #1: 0xe12ffa91a9f6a44f1a7ad725dafcf2927daf048dc049ecc029345648bf196e27 Contract deployment: FundMe Contract address: 0xe7f1725e7734ce288f8367e1bb143e90bb3f0512 Transaction: 0x1672b9f96292a22901f231051ff1a01fb85e874c2665a381149e6e4d1b067543 From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 Value: 0 ETH Gas used: 1108690 of 1108690 Block #2: 0x88e594edc888345ddfcba998b4dfd90482894b19c3778eee787251ef7cd1cf2e

eth_blockNumber
net_version (2)
eth_getBlockByNumber
eth_blockNumber
eth_getBlockByNumber
eth_blockNumber (2)
eth_chainId
eth_blockNumber
net_version
eth_getBlockByNumber
eth_getBalance (3)                                                                                                                                                
eth_blockNumber
eth_feeHistory
eth_blockNumber (2)
eth_estimateGas
eth_getCode
eth_accounts
eth_call
  Contract call:       FundMe#<unrecognized-selector>
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xe7f1725e7734ce288f8367e1bb143e90bb3f0512

eth_call
  Contract call:       FundMe#<unrecognized-selector>
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xe7f1725e7734ce288f8367e1bb143e90bb3f0512

eth_call
  Contract call:       FundMe#<unrecognized-selector>
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xe7f1725e7734ce288f8367e1bb143e90bb3f0512

eth_call
  Contract call:       FundMe#<unrecognized-selector>
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xe7f1725e7734ce288f8367e1bb143e90bb3f0512

eth_feeHistory (2)
eth_blockNumber
eth_feeHistory
eth_getTransactionCount
eth_feeHistory