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

Calling a payable function with a certain value #39

Open
mojtaba-eshghie opened this issue Sep 30, 2023 · 0 comments
Open

Calling a payable function with a certain value #39

mojtaba-eshghie opened this issue Sep 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mojtaba-eshghie
Copy link
Owner

If a transaction is made to a payable function, and we need the value to be incorporated in the model to reflect logic in the function body, we can use the convention of if a transaction has a value (Wei used as standard), instead of looking for the function name in the DCR ids, you look for functionName+Value => So, a transaction with some wei to a payable function extendLockTime will result in the monitor look for extendLockTimeValue function (setting the data attribute to msg.value of the transaction).

@mojtaba-eshghie mojtaba-eshghie self-assigned this Sep 30, 2023
@mojtaba-eshghie mojtaba-eshghie added the enhancement New feature or request label Sep 30, 2023
mojtaba-eshghie added a commit that referenced this issue Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant