informalsystems / informalsystems/FuzzMo

[model generation] Handle bank transfers outside of the pure functions

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Current state

Pure functions can add a `BankMsg` in order to signal funds transfer that result from a particular action being executed.
But when receiving funds, they are expected to transform the `bank` argument themselves.

## Proposed solution

Handle bank transfers outside of the pure functions (before/after) they are called, as @bugarela suggested.
They do not even need to read the bank state variable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.