@serverConnectd@calyptus_web3 Without "pure/view" you can't get the return value offchain. It will be treated as a transaction. You pay 21000 extra gas which is minimum amount of gas to pay for tx.
๐จโ๐ป 100 Developer Jobs Across Polkadot Ecosystem ๐จโ๐ป
Bear Market? Nah, not for #Polkadot
Polkadot has the highest development activity in June 2023! ๐
It's always a bull for Polkadot Builders! ๐ ๏ธ๐
Get this list ASAP: please ๐ Like, ๐ Retweet, & ๐จ๏ธ Comment "Polkadot"
@SolidityScan Should be 'addresses[i].call'
Not checking value 'ok'
The transaction can exceed the block gas limit and revert if the 'balances' array is too large. This makes 'distribute' function unusable
'addresses[i]' can return large amount of data and make the transaction run out of gas.
@SBinaykiya No, reentrancy is not possible because only the owner can call withdraw(), and the transfer() function imposes a hardcoded limit of 2300 gas, which is only enough to transfer eth and emit an event.
The bug, however, is not following the Check-Effects-Interaction pattern.
@Quill_Academy In changeHokage function _hokage should be _newHokage
No need for "currentHokage" function, since "hokage" is public, the comliler provides getter function or make "hokage" private.
@Quill_Academy Bugs find no Jutsu
Anyone can become hokage, even someone who is not a shinobi.
Anyone can read storage slot 1 and get the value of "seal".
No access control on changeHokage.
Spelling mistake in "funciton changeHokage".