Hot answers tagged

4

That is called a Deflationary Token. You can override the transfer function of an ERC-20 token and add a burn function that will burn a percentage of tokens that are being transferred. Keep in mind that you should check both from and to addresses are non-zero, otherwise it would burn the mint and burn transfers.


1

There is a Similar question, and the answers are: Filter contract creation transactions on validator/mining nodes Make CREATE opcode unreachably costly.


1

You can specify solidity version for the web3j-maven-plugin via setting the following property: solidity.version. In your case, it is already specified as your pom file contains: <properties> ... <solidity.version>0.7.4</solidity.version> </properties> So, the plugin will automatically install the right solc ...


1

It is a perfectly valid use to use a transaction data field to store messages. And it is cheaper than using a contract if your data is read only.


1

Most likely you are using v1 secret engine. dev mode by default uses v2 secret engine and EthSigner also expects v2 secret engine. In production mode, you have to explicitly set v2 when creating it. See https://www.vaultproject.io/docs/secrets/kv/kv-v2 for more details. It also points to this tutorial which provides exact steps to enable it. https://learn....


Only top voted, non community-wiki answers of a minimum length are eligible