Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

address transfer function does not trigger #357

Open
millionada opened this issue Jul 6, 2023 · 1 comment
Open

address transfer function does not trigger #357

millionada opened this issue Jul 6, 2023 · 1 comment
Assignees
Labels
help-wanted I need technical help

Comments

@millionada
Copy link

Address transfer function does not trigger when contract executed

Steps to reproduce
Open https://millionada.github.io/dogechain/
Buy ticket
Scratch ticket

Expected behaviour
1% of transaction amount sent to dev address

Actual behaviour
transfer function does not produce record in dogechain explorer

Logs
https://explorer.dogechain.dog/tx/0xc3e8c11083b4213f4a10662632ae432da7b39a5bd32f193753fdc71bb61769e3

address payable dev_fund = payable(0x24aF739A63ead20d7fa9e67caDc7b32869D5B69A);

function scratch() public payable {
totalPlayers++;
dev_fund.transfer(ticketPrice /100);

Contract source code

https://explorer.dogechain.dog/address/0xd3fD6945515E854F58235D91604aF288358FFDC1/contracts#address-tabs

@DarianShawn
Copy link
Collaborator

Have you tried deploying it on Devnet?
Devnet RPC endpoint supports debug_traceTransaction, which will definitely helps a lot with contract development.
See https://docs.dogechain.dog/ for the endpoint.

@DarianShawn DarianShawn self-assigned this Jul 14, 2023
@DarianShawn DarianShawn added the help-wanted I need technical help label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted I need technical help
Projects
None yet
Development

No branches or pull requests

2 participants