CRYPTO NEWS

Use another token as validator in solidity

I want to develop a contract where to call a function you need to have a certain amount of another token in your wallet.Lets say if a user have 10 of this token

(0x5B38Da6a701c568545dCfcB03FcB875f56beddC4)

in his wallet then only he can call the setName function.

code

pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT   contract Validator{      string name;     address token= 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;       function setName(string memory _name)public {         require();         name=_name;     }       } 

Ethereum cluster in kubernetes

I am trying to set up a private ethereum cluster in kubernetes. I have tried to use the stable deprecated helm chart, but it only works with older versions of the ethereum/client-go image. When I use version 1.9 or higher, I see in the bootnode logs the message Note: you’re using cmd/bootnode, a developer tool.::Listen

I am trying to set up a private ethereum cluster in kubernetes. I have tried to use the stable deprecated helm chart, but it only works with older versions of the ethereum/client-go image. When I use version 1.9 or higher, I see in the bootnode logs the message Note: you're using cmd/bootnode, a developer tool. and the miners cannot connect to the bootnode.

Has anyone managed to make it work?

Also, reading this answer here in a related issue of stack exchange, I have tried to setup the cluster without a helm chart, following the guide described in the official docs of geth ethereum. In this case, I see that the bootnode, tries to connect to other network ids DEBUG[08-04|16:04:45.776] Ethereum handshake failed id=64454cd244abc39a conn=dyndial err="network ID mismatch: 100 (!= 818945082333)".

I have searched all over the internet but cannot find an updated guide. Any help is deeply appreciated.

Use another token as validator in solidity

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