Z Pattern Matching algorithm ExplainedThe Z algorithm is a powerful string-matching algorithm that is used to efficiently search for a pattern within a larger text string. This algorithm works by precomputing a table of values that represent the longest common prefix between the pattern ...Feb 27, 2023 · 3 min readaniruddha-deshmukh.hashnode.dev
Event Listeners in web3.jsEvents in Solidity In a Solidity Smart Contract, you can emit events that can be listened to outside the contract. In the example given below, currentCount(unit count) event is created with the event keyword. This event is emitted with the help of em...Feb 5, 2022 · 2 min readaniruddha-deshmukh.hashnode.dev
How to send Batch Transactions on Ethereum using web3.jsTransactions in EVM-based blockchain networks can be batched using the web3.js library. You need to create a batch object in order to perform this task. You can have a look at the example code from the web3.js documentation. var contract =new web3.et...1BFeb 4, 2022 · 2 min readaniruddha-deshmukh.hashnode.dev
How to Accept ERC20 tokens into a Smart Contract as Payment instead of Etherpayable function modifier provides a way to receive ethers in your smart contract. But what if you want to receive ERC20 Tokens into your smart contract. In this article, We will have a look at how you can do this. In order to accept tokens into the ...Jan 29, 2022 · 2 min readaniruddha-deshmukh.hashnode.dev
Difference Between transfer() and transferFrom() in ERC20 Token contractIn this article, you will learn about the difference between the transfer method and transferFrom() method in the ERC20 Token contract. transfer method: function transfer(address _to, uint256 _value) public returns (bool success) transfer(address _to...Jan 26, 2022 · 2 min readaniruddha-deshmukh.hashnode.dev