Closed jesterxd closed 3 years ago
@jesterxd Heya, we don't offer support for your own deployments of this app as a rule.
But what you described is what happens when a contract reverts -- that is, it reaches some state that fails a check.
It really depends on how you're "interacting" with it. Are you trying to buy an ad slot that is already purchased, for example?
You also don't need to use the vue dapp to interact with the contract, you can also use etherscan for example. Or write your own code.
One final suggestion: I rewrote the original contract using more modern solidity (since the deployed version is quite old). It has better error messages and might help you if you're trying to build something on top of it. It's in this branch, but it will be merged eventually: https://github.com/thousandetherhomepage/ketherhomepage/blob/nft-wrap/contracts/KetherHomepageV2.sol
Good luck!
When I try to interact with the contract via Metamask browser extension, I get the warning "
ALERT: Transaction Error. Exception thrown in contract code.
" when I attempt to buy. The code works, and the site is fine, it's just that when I attempt to transact, I get the error, and the transaction doesn't go through. It looks like this (not my image, but that is how the error looks). I have opened an issue in the MetaMask repo, asked questions on the community forum,ethereum.stackexchange.com
, and reddit r/ethdev, but have received no answers. I also reinstalled and updated MetaMask on Chrome, but it didn't help.I tried debugging with Remix, but it only highlighted that certain parts of the code were deprecated, nothing else. I was also able to successfully deploy the contract to Rinkeby via Remix (for the 2nd time, I first deployed via command line). My command line deployment steps were not the ones in the
readme
. I just installedtruffle
vianpm
, editedtruffle.js
, and rantruffle deploy --network rinkeby
. Newtruffle.js
:.sol
files are the same as on GitHub.App.vue
:Buy.vue
:What could be causing this? Thanks.