For questions about the Ethereum Virtual Machine programming language, the programming language of smart contracts on the Ethereum blockchain.
Questions tagged [evm]
173 questions
0
votes
1 answer
Brownie Github Actions workflow
I am trying to deploy smart contracts on Ethereum Sepolia testnet using python brownie eth-brownie==1.19.3. My scripts work locally, but I want to deploy from Github Actions directly for a CICD pipeline for smart contracts.
Does anyone have a…

Matt - Block-Farms.io
- 436
- 4
- 18
0
votes
0 answers
Explain Validate Transaction Proof Method Parameters
This is url of a transaction on bscscan. I want to simulate this transaction with web3.py. In "Input Data", I don't understand value "0000000000000000000000000000000000000000000000000000000000000ba1". What is it ? where can I get it from ? I convert…

Mike
- 53
- 1
- 8
0
votes
0 answers
When i call a function by using web3js, the smart contract keep telling me: ransaction has been reverted by the EVM:
Here is my solidity code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17.0;
contract Seller {
struct GoodsItem {
uint256 id;
string name;
uint256 left ;
uint256 price;
}
struct Shop {
string shopname;
string boss;
…

Noah Xia
- 1
0
votes
0 answers
"Unkown error: Receipt Status Error" for a Smart Contract deployed on Hedera
I'm following this Hedera tutorial for transferring hbars with a smart contract.
After trying to run the code provided in the tutorial, I get the following error:
ReceiptStatusError: receipt for transaction 0.0.3969463@1682422103.737727129…

Defi Girl
- 186
- 4
0
votes
0 answers
Python object variable appears to retain state even after it has been reassigned to a new object
I have a 'Context' Object which contains a stack. I have a Run function that reads bytes and returns a new Context object after interpreting those bytes and manipulating the stack.
I have a script that in a loop calls this Run function with…

ara13
- 1
0
votes
0 answers
VM Exception while processing transaction: revert (While trying to access function deployed in a smart contract)
When I am trying to call a function that is deployed in a smart contract, it shows me
Error: Returned error: VM Exception while processing transaction: revert
Even when I am trying to call a simple HelloWorld function deployed in smart contract,…

Deepu D
- 1
- 1
0
votes
0 answers
Get logs of smart contract (EVM)
I need to get all events of my smart contract to be able to show change history of an object.
Ti do that, I use the following code that I found on documentation.
const provider = new ethers.providers.Web3Provider(ethereum);
provider
…

barden
- 349
- 6
- 18
0
votes
1 answer
Making Ethereum transaction smart contarct input data in human readable
In the following tx on testnet I'm looking to understand what the bytes value being passed as an input parameter actually is in a human readable form:
Tx:…

Nakatomi
- 104
- 2
- 13
0
votes
0 answers
Invalid Signature Smart Contract
I am trying to execute the lending call function from this Smart Contract.
The following code is JavaScript using Ethers.js to make the integration with the Smart Contract.
const contractAddress = "0x1C4E9F87c7F2bCd80c89A1999d776461d41545b9";
…

junis087678
- 71
- 7
0
votes
0 answers
How to fix the error Invalid Signature Smart in a Contract call
I am trying to execute the lending call function from this Smart Contract.
The following code is JavaScript using Ethers.js to make the integration with the Smart Contract.
const contractAddress = "0x1C4E9F87c7F2bCd80c89A1999d776461d41545b9";
…

junis087678
- 71
- 7
0
votes
0 answers
Front-end Mint function works on Remix VM but doesn't work when the contract is deployed on blockchain (testnet or mainnet)
I built my frond-end with rainbowkit, using their example "with-next-mint-nft" on Github
The mint button is disabled when I change the smart contract address to my contract.
It works when I use the smart contract address Rainbowkit provides in the…

Jerome G
- 1
0
votes
0 answers
How extract return data from call
I'm writing raw EVM op-codes, and want to return result data
contract Test {
address public addr;
bytes public sourceCode;
function deploy() private returns (address pointer) {
bytes memory code = abi.encodePacked(
…

Nikita Duginets
- 163
- 1
- 6
0
votes
0 answers
Filecoin EVM : What is the possible solution to the error with code 1 when trying to look up actor state nonce on the Hyperspace network?
import '@ethersproject/shims';
import 'text-encoding';
import { ethers } from 'ethers';
import { Buffer } from 'buffer';
const fa = require("@glif/filecoin-address");
import { DAPP_CONTRACT } from "@env"
const networkInfo = {
defaultNetwork:…

Jon Gan
- 29
- 5
0
votes
0 answers
[Ganache/ Truffle]revert TX Limit Exceeded -- Reason given: TX Limit Exceeded
To test my EVM smart contract on mainnet, I use ganache to fork mainnet and implement the truffle test but failed with error code as the title.
My Environment:
RPC endpoint: https://bsc-dataseed1.defibit.io
Truffle v5.2.6 (core: 5.2.6)
Solidity -…

Eric Lee
- 171
- 2
- 10
0
votes
1 answer
Gas savings on hardcoded addresses vs setting in constructor
In contracts I often come along hardcoded constant address such as WETH:
address internal constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
I am now curious, whats the difference between this style and the initialization by the constructor,…

Derawi
- 430
- 4
- 12