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 ...
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
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
contract-development × 4402solidity × 2402
contract-design × 1054
remix × 449
contract-deployment × 378
tokens × 369
go-ethereum × 361
web3js × 354
contract-invocation × 347
contract-debugging × 273
erc-20 × 241
truffle × 238
blockchain × 233
transactions × 222
ether × 133
gas × 133
dapp-development × 109
security × 87
storage × 79
arrays × 78
evm × 72
dapps × 71
nft × 71
metamask × 69
events × 69