Category "ethereum"

Solang - panicked at 'type not allowed'

I am trying to get an Ethereum smart contract up and running for Solana. I'm using solang and it had a few issues that I was able to fix, like Solidity's assemb

How to get from private key and seed phrase to account address?

This info are of a metamask dummy account. Does anyone know the process to get the hash_mm from seed and/or private_key? seed = "else wrist ..."

Revert throws "missing revert data" in inherited method

I've got a base contract which I use to add functionality to other contracts by inheritance. For some reason, neither revert nor require are working as expected

How to Mint ERC1155 with my own ERC20 token

I'm tryin to mint my ERC1155 nfts with my own ERC20 so i did the following : 1- created a variable of ERC20 ERC20 public FCG = FCG<br> and in the const

Do I have to write a decentralized application in the same language as the blockchain?

Do I have to write a decentralized application in the same language as the blockchain?

Why msg.sender has the address of the deployer (address isnt the caller)

I'm currently developing on a simple Naming Service for the Ethereum Blockchain. msg.sender has the address of the deployer from the contract and not from the c

Why is this public address different for an ethereum signature?

I have a signature created using metamask and the personal_sign RPC method. Now I want to verify this signature in my C# backend. In order to do so I have found

Why is this public address different for an ethereum signature?

I have a signature created using metamask and the personal_sign RPC method. Now I want to verify this signature in my C# backend. In order to do so I have found

Gas estimation failed: 'invalid opcode: INVALID'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually

I adapted the code from this tutorial for my needs. It works fine at rinkeby network, but I am getting an error when I try to run it on Mumbai network. Advanced

How much would cost Ethereum transaction sending ERC20 token to N recepients?

I want to make an ERC20 token that supports virtual mining. That means that in my Smart Contract I want to make the rule that every K seconds, it sends X amount

How much would cost Ethereum transaction sending ERC20 token to N recepients?

I want to make an ERC20 token that supports virtual mining. That means that in my Smart Contract I want to make the rule that every K seconds, it sends X amount

Override the gasPrice in ethers.js contract interaction

How can I set the gasPrice in a contract interaction using ethers.js? I'm trying to override the gasPrice in the code below: let txPromise = contract.populateTr

How to run Docker on an external USB hard-drive in Ubuntu 21.10?

I am trying to run the following command in Ubuntu 21.10 with Docker so that it will run on my external USB hard-drive: sudo docker run -v /media/alexanderjsing

Nethereum C# BlockProcessor how to set MinConfirmations

I'm trying to process the most recent Blocks with a BlockProcessor in Nethereum. I think by default it is waiting for 12 block confirmations before processing t

Is Bitgert the fastest and scalable blockchain ecosystem ever?

Recently I happened to know that Bitgert will be the future of ideal blockchain network because it's the fastest and provides zero-gas fee. Is this true? Bitger

How to get right msg.sender calling from contract instance a.foo() and have all secure from 3rd parties

I got stucked in thoughts guys and I need bit of clarification to move it forward. (Description is about real problem, code is for best (I hope so..) understand

How to convert string to bytes8 in solidity?

I get string parameter in the function, and the length of the parameter is less than 8. and I want to convert this parameter to bytes8 for saving in the array.

Ethtx tasks can be used with webhook jobs

I would like to know if ethtx tasks can be used with webhook jobs. I tried to run the job from the operator UI and it returns an internal server error, when I l

It takes too long to send transaction to the smart contract which is already deployed. (Nethereum + Unity)

I'm making some dApp using Unity & Nethereum. I deployed one contract to the Ropsten Test Net using Remix. And I had abi & bytecode of that, so I made D

I am getting "AssertionError: Expected transaction to be reverted with Username " when I am testing my solidity code

When I am running npx hardhat test on the below smartcontract I am getting AssertionError: Expected transaction to be reverted with Username is taken please try