You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2022. It is now read-only.
Looking at getBalanceMessage() it seems like you can do without it. It just turns some fields to string and concatenates them. That can very easily be done on the client side and does not need a smart contract function.
Looking further it seems you use getBalanceMessage() in verifyBalanceProof() and then use verifyBalanceProof() in the close() functions.
So here one thing to note. You should undo the constant keyword from both getBalanceMessage() and verifyBalanceProof() as you are not using them as constants. You call them from `close(). This is confusing to read.
Furthermore I don't see why you need to concatenate string, and have to do string manipulation which is expensive. Why not play with an array of bytes and encode/decode them?