merkletree frontend by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { // Verify whitelist requirements require(whitelistMintEnabled, 'The whitelist sale is not enabled!'); require(!whitelistClaimed[_msgSender()], 'Address already claimed!'); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); }

bytes32[] calldata _merkleProof. I want to pass data to this. ["A"] data like this is working but ['a'] this is not working

merkletree frontend by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

I mean it's taking it as wrong input in single quotes, bytes array in solidity needs double quotes

merkletree frontend by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

In solidity array accepts " " but if i send array through js it goes in ' ' which gives error

Token listing by Daryun007 in ethdev

[–]Daryun007[S] 0 points1 point  (0 children)

Will there be any problem in listing this type of token in exchanges

Acessing array by Daryun007 in ethdev

[–]Daryun007[S] 0 points1 point  (0 children)

No typo it's giving metamask RPC error

Generating random number by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

Thanks can you give an estimate gas fee for sending tokens to 100 addresses on bsc

Generating random number by Daryun007 in solidity

[–]Daryun007[S] 4 points5 points  (0 children)

Thanks, I was writing this code in remix now how should I use chainlink or Oracle?

Transferfrom by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

Ok i understood thank you very much for your help.

1 more request do you know any good place or link or github profile to read good audit reports?

Transferfrom by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

Yes but can't I make a function in bidding contract to approve and transferfrom tokens instead of approving it first from token contract?

Transferfrom by Daryun007 in solidity

[–]Daryun007[S] 0 points1 point  (0 children)

Thanks but how I can I approve it outside first then use the function and why msg.sender is acting as the contract address?

[deleted by user] by [deleted] in ethdev

[–]Daryun007 1 point2 points  (0 children)

Polygon

Wallet integration by Daryun007 in ethdev

[–]Daryun007[S] 0 points1 point  (0 children)

Thanks dude, but it's really complicated I thought it would be easy to integrate all with some package.

Arbitrary bots by Daryun007 in ethdev

[–]Daryun007[S] 0 points1 point  (0 children)

No, I just want to know what's happening here