You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- Yes , i have transfered token into the Airdrop contract, I am thinking the error may be coming from the gas fees i set on the airdrop contract, but does that change anything?Hallenjay– Hallenjay2023-12-25 12:55:13 +00:00Commented Dec 25, 2023 at 12:55
- For best practice, you can try to execute function claim directly in blockchain scan (i.e., bscscan), if it works well. Then, your FE code has problem. If not, your Solidity code has problem :D.tqdpham96– tqdpham962023-12-25 12:57:24 +00:00Commented Dec 25, 2023 at 12:57
- the claim function is not working on polygon testnet, same as all the read function on polygon testnet because that is where i deployed the contract meanwhile all the read function are working and returning right result when i used javascript to query itHallenjay– Hallenjay2023-12-25 12:59:44 +00:00Commented Dec 25, 2023 at 12:59
- I deployed your contract and test it on bsc testnet. The function claim work pretty well and I received 1M token. Are you sure that you send the right token (jayTechTokenAddress) to the smart contract? If yes, can you provide the sc address so that I can try by my self.tqdpham96– tqdpham962023-12-25 13:13:26 +00:00Commented Dec 25, 2023 at 13:13
- This is sc address : 0x6126C8dc3395d52A4a1470773CF4987B5B20724F for the token on polygon testnet. mumbai.polygonscan.com/token/…Hallenjay– Hallenjay2023-12-25 13:18:17 +00:00Commented Dec 25, 2023 at 13:18
| Show 7 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. go-ethereum), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-js