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
Those contracts implementing trait-flash-loan-user (e.g. flash-loan-user-margin-usda-wbtc.clar) should then convert (optional (buff 16)) into uint using the following:
flash-loan of alex-vault also needs to be updated (to pass (optional (buff 16))).
According to this comment, I understand that we need to change the flash-loan in trait-vault.clar from (optional memo) to (optional uint). But while I was checking the test case Flash Loan: create margin trade, the flash-loan function call is passing expiry as an argument to the function call flash-loan which accepts memo: number.
My question is then, do we need to change this .trait-vault flash-loan function signature? If yes then we have to pass expiry as a buffer. If not then we have to convert memo (optional uint) to (buff 16) and pass it in flash-loan-user execute method in alex-vault.clar.
Those contracts implementing
trait-flash-loan-user
(e.g.flash-loan-user-margin-usda-wbtc.clar
) should then convert(optional (buff 16))
intouint
using the following:flash-loan
ofalex-vault
also needs to be updated (to pass(optional (buff 16))
).We also need a util / function to convert
uint
into(buff 16)
.The text was updated successfully, but these errors were encountered: