Problem
I'd like to make a bank program with a withdraw method which returns previously deposited fund to the caller.
In gstd I was able to implement it by specifying a nonzero value in msg::reply(payload, value)
Sails doesn't seem to allow a custom value to be returned with the result, or am I missing something?
Steps
Possible Solution
No response
Notes
No response
Relevant Log Output
Click to expand/collapse
Problem
I'd like to make a bank program with a withdraw method which returns previously deposited fund to the caller.
In gstd I was able to implement it by specifying a nonzero value in
msg::reply(payload, value)Sails doesn't seem to allow a custom value to be returned with the result, or am I missing something?
Steps
Possible Solution
No response
Notes
No response
Relevant Log Output
Click to expand/collapse