2 votes

Just got my contract drained- how?

Without you giving us tx-hash details, it is hard to find what exactly caused the hack. But I guess you do not have any reentrancy guard in your transfer function-- it might be why your contract is ...
user avatar
  • 945
1 vote
Accepted

Can anyone make this function of findMostOccurringString as transaction-less (view or pure)?

You can do it using this code //SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract CalculateStringsMode { function findMostOccurringString(string[] memory arr) public pure ...
user avatar
1 vote

Source File requires different compiler version

What worked for me is the following: Type ctrl+SHIFT+p Select solidity:Change Global compiler version (Remote) Select your desired solidity version Additionally, I needed to change in the setting of ...
user avatar
  • 117

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