It'll be called by vuex. the func returns a gas. The returned gas then can be passed to signAndBroadcast.
That way we give the possibility of confirming the fee by a max threshold configured in vuex or can be confirmed by the UI user before broadcasting.
Add a
simulate
func to the generated js wrapper.It'll be called by vuex. the func returns a gas. The returned gas then can be passed to
signAndBroadcast
. That way we give the possibility of confirming the fee by a max threshold configured in vuex or can be confirmed by the UI user before broadcasting.Pretty much the same what we have in SPN client.