-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
…xt I will integrate the keystore
…mpl From Public for MultiSigner
…is unusable, will add tests the same way as substrate identity example in future commits
… yields the SAME ERROR
At this point, I'm consistently getting So right now, we have /// Issue shares
pub async fn issue_shares(
&self,
organization: u64,
who: AccountId32,
shares: u64,
) -> Result<SharesIssuedEvent<Runtime>> {
let signer = self.signer()?;
self.client
.clone()
.issue_shares_and_watch(&signer, organization, &who, shares)
.await?
.shares_issued()
.map_err(|e| substrate_subxt::Error::Codec(e))?
.ok_or(Error::EventNotFound)
} and we need to make it like this to match the norms of /// Issue shares
pub async fn issue_shares(
&self,
organization: u64,
who: AccountId32,
shares: u64,
) -> Result<()> {
let signer = self.signer()?;
self.client
.issue_shares_and_watch(&signer, organization, &who, shares)
.await?
.shares_issued()
.map_err(|e| substrate_subxt::Error::Codec(e))?;
Ok(())
} The annoying part is that this new form does not emit the event. So I feel like the |
…ont actually watch event emission and it is missing that
…rary workaround for issue #93 by just not using the Currency trait
…assumed conventions with respect to Call and Event names necessary for the macro
…ype because this makes the most sense for one way inheritance because bank does not need anything from bounty
This PR has good stuff in it so I will merge it. The client still doesn't work as mentioned in greater detail in the previous comment. |
For clarification, #95 was NOT resolved in this PR. The issue is still open for this reason. |
module stuff
client stuff
examples
Might tackle this in a future PR but I want the
examples
folder to make calls to client AND wait for relevant event emission. The currentexamples/org
makes theissue_shares
call but doesn't listen for event emission...