Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
38 views

How to Call Solidity Function with Struct Parameter from JavaScript?

I'm trying to execute a Solidity function using JavaScript. The Solidity function accepts a struct as an argument, and I'm not sure how to structure the data in my JavaScript code to make this call ...
adam mr's user avatar
  • 141
1 vote
1 answer
208 views

how do I implement payable in erc1155?

I'm so new to solidity and I'm trying to implement payable Nft using ethers.js. I think I'm checking the balance of the address and comparing it with mintRate * amount wrong. I tried something like ...
badcoder01's user avatar
3 votes
2 answers
788 views

Testing VrfCoordinatorV2Mock fulfillRandomWords gets stuck

I am testing a smart contract that uses Chainlink's VRF Oracle. Locally, I am using a mock to test with. In the unit test it never executes the fulfillRandomWords function that on my smart contract, ...
Anas Latique's user avatar
0 votes
1 answer
217 views

Problem in withdraw() function in Auction contract, !payable is used still its able to refund the amount of the lower bidders when we click withdraw

In Withdraw Function, !payable condition is given, but payable condition not given, still when we click withdraw, then we will get our money back if we dont have the highest bid pragma solidity ^0.8.4;...
Aviral Chaudhary's user avatar
1 vote
0 answers
489 views

Ether transaction does not reflect in ganache

Hi am developing a etherium DAPP. In that for every user registration some ether will get transfer from user to contract... Everything work perfect but the transacted ether is not reflecting in ...
Monicka Akilan's user avatar
1 vote
2 answers
4k views

How to check Balance of a specific account (MetaCoin)

I'm fairly new to programing and solidity, still on the learning curve of things here.... So right now I'm trying to check for the balance in Wei of the account I submit into the text field (Account). ...
Kizito's user avatar
  • 779
2 votes
1 answer
494 views

Ether.Camp web3 js interact with contract - what am I doing wrong?

I have a working contract that I made in ether.camp with solidity, it functions as desired through the IDE contract interface and now I am trying to tie it into an html GUI with web3. To this end I ...
user1202278's user avatar