All Questions
5 questions
1
vote
0
answers
41
views
How to fix `Invalid callback object specfied` error when deploying a smart contract?
My smart contract:
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
contract Inbox {
string public message;
constructor (string memory initiialMessage) {
message = ...
1
vote
1
answer
201
views
web3.js how to call receive() external payable?
firstly, I have a code in a contract as below:
receive() external payable {
// function enter() external payable {
require(msg.value > 0.1 ether, "require minimum 0.1 ether!...
0
votes
2
answers
20
views
Collect 2 or more contract balances in one contract
I'm trying to develop a smart contract which collect fees from other contracts.
I tried to do:
function sendFees() public {
address payable feeCollector = payable(feeCollector addredd);
...
0
votes
1
answer
142
views
How can a Smart Contract ask informations to a node?
I need to code something quite complex compared to my experience.
Just for academic purpose, I'm supposed to have a lightweight blockchain that connects a group of nodes; in this blockchain every node ...
1
vote
1
answer
2k
views
how to solve VM Exception while processing transaction: out of gas
i am trying to call this function with help of web3.js in ganache testrpc but it is giving me error of VM Exception while processing transaction: out of gas
i have tried to increas gas of ganache to ...