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
Since it takes coin:Coin<SupraCoin> as a parameter, it can not be called directly via CLI or client, since Coin can not exist outside of the chain. This is the reason why this is not an public entry function but merely a public fun. Also, it takes multisig_admin: Option<address> as a parameter which can not be sent via CLI/client.
However, this also means that this method can not be called via on-chain multisig account, because on-chain multisig account can only specify EntryFunction as a payload.
Therefore, it is better to define another function as follows:
For now, it is better to define such a method in a different module outside of a framework.
Later, this interface need to be provided in supra_framework/pbo_delegation_pool.move directly.
The text was updated successfully, but these errors were encountered:
pbo_delegation_pool.move
as of now has the following initialization method signature,Since it takes
coin:Coin<SupraCoin>
as a parameter, it can not be called directly via CLI or client, sinceCoin
can not exist outside of the chain. This is the reason why this is not anpublic entry
function but merely apublic fun
. Also, it takesmultisig_admin: Option<address>
as a parameter which can not be sent via CLI/client.However, this also means that this method can not be called via on-chain multisig account, because on-chain multisig account can only specify
EntryFunction
as apayload
.Therefore, it is better to define another function as follows:
For now, it is better to define such a method in a different module outside of a framework.
Later, this interface need to be provided in
supra_framework/pbo_delegation_pool.move
directly.The text was updated successfully, but these errors were encountered: