Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,834 changes: 4,030 additions & 804 deletions bindings/python/lib/iota_sdk_ffi.py

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion bindings/python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ async def main():

filter=EventFilter(sender=my_address)


if __name__ == '__main__':
asyncio.run(main())
10 changes: 4 additions & 6 deletions crates/iota-sdk-ffi/src/graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,15 +499,14 @@ impl GraphQLClient {
pub async fn transaction(
&self,
digest: &TransactionDigest,
) -> Result<Option<Arc<SignedTransaction>>> {
) -> Result<Option<SignedTransaction>> {
Ok(self
.0
.read()
.await
.transaction(**digest)
.await?
.map(Into::into)
.map(Arc::new))
.map(Into::into))
}

/// Get a transaction's effects by its digest.
Expand All @@ -529,15 +528,14 @@ impl GraphQLClient {
pub async fn transaction_data_effects(
&self,
digest: &TransactionDigest,
) -> Result<Option<Arc<TransactionDataEffects>>> {
) -> Result<Option<TransactionDataEffects>> {
Ok(self
.0
.read()
.await
.transaction_data_effects(**digest)
.await?
.map(Into::into)
.map(Arc::new))
.map(Into::into))
}

/// Get a page of transactions based on the provided filters.
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-sdk-ffi/src/types/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ macro_rules! impl_digest_wrapper {
derive_more::Deref,
uniffi::Object,
)]
pub struct $t(iota_types::$t);
pub struct $t(pub iota_types::$t);

impl $t {
#[uniffi::constructor]
Expand Down
Loading