Skip to content

Instantly share code, notes, and snippets.

View 0xheartcode's full-sized avatar
🐼
Panda Mode 🎍

0xheartcode 0xheartcode

🐼
Panda Mode 🎍
View GitHub Profile
function findPositionInArrayForLoop(uint _item, uint[] memory _array) pure internal returns (uint i) { // requirements should come before.
uint[] memory tmpArray = _array;
uint arrayLength = tmpArray.length;
for (i = 0; i < arrayLength;) {
if (tmpArray[i] != _item) {
unchecked {
i++;
}
#List of free public RPC nodes with good performance
#Mainnet
ETH_RPC=https://eth.llamarpc.com
BSC_RPC=https://bsc-dataseed.binance.org
ARB_RPC=https://rpc.ankr.com/arbitrum
AVAX_RPC=https://avax-mainnet.gateway.pokt.network/v1/lb/605238bf6b986eea7cf36d5e/ext/bc/C/rpc
FANTOM_RPC=https://fantom.blockpi.network/v1/rpc/public
ZKERA_RPC=https://zksync-node.blockwallet.io
POLYGONZK_RPC=https://polygon-zkevm-node.blockwallet.io
Hello, this is Sienna