CRYPTO NEWS

Brownie Compile Unicode Decode Error

I am trying to compile this smart contract (fluxAggregator) to setup a Flux-Monitor within VS Code using brownie:

Brownie v1.19.0, Python v3.9.13, Node.JS v16.14.2, NPM v8.13.1

Within the import code lines in the smart contract, I have replaced the paths with @chainlink/contracts/src/v0.6/

Then my execution commands are:

brownie init npm install @chainlink/contracts --save brownie compile 

Once I compile, I get this error returned.

UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x81 in position 5029: character maps to

My brownie-config.yaml which is located in the root directory of the working directory contains:

dotenv: .env dependencies:   - smartcontractkit/[email protected] compiler:   solc:     remappings:       - "@chainlink=smartcontractkit/[email protected]" 

And finally, the VS Code Solidity extension warns me that the source file requires a different compiler version (current compiler is 0.8.9….). To fix this I change the workspace compiler version to the same as the smart contract (v0.6.6). But I still receive the Decode error message upon compiling.

Gas required exceeds allowance when I deploy a smart contract in Remix

The blockchain is new to me. My goal is to create a private blockchain network. A network with two nodes and a boot node has previously been established by me. My local Ethereum account was then linked to my MetaMask account. Then I linked the MetaMask and Remix together. I created a test smart contract in Remix.::Listen

The blockchain is new to me. My goal is to create a private blockchain network. A network with two nodes and a boot node has previously been established by me. My local Ethereum account was then linked to my MetaMask account. Then I linked the MetaMask and Remix together. I created a test smart contract in Remix. I get an error when I deploy a smart contract in Remix. I’ve included a screenshot of the error below.

My questions

  1. Is there a gas price for private Ethereum networks?
  2. Why did the smart contract deployment error I received below occur?

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "gas required exceeds allowance (5003)" }

My Genesis file look like this

My Genesis file

My smart contract code

pragma solidity ^0.4.24;  contract SimpleStorage{     uint storedData;   function set(uint x) public {     storedData = x; }  function get() public view returns (uint) {     return storedData; } } 

Error while deploy Error while deploy

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "gas required exceeds allowance (5003)" }

I attempt to make the gas fee as zero. But MetaMask not allowed to set the gas fee to 0.

enter image description here

enter image description here

Brownie Compile Unicode Decode Error

Shopping cart
There are no products in the cart!
Continue shopping
0