Skip to content

Commit

Permalink
Closes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed May 1, 2023
1 parent e4e37a4 commit a32f44a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Mutable flag on ObjectRead of ownertype Shared [bug](https://github.com/FrankC01/pysui/issues/97)
- Pure string encoding [bug](https://github.com/FrankC01/pysui/issues/91)
- Exclude simple types from SuiTransaction `make_move_vec` [bug](https://github.com/FrankC01/pysui/issues/93)
- Simple empty list as `arguments` was failing [bug](https://github.com/FrankC01/pysui/issues/94)
Expand Down
1 change: 1 addition & 0 deletions pysui/sui/sui_txresults/single_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class SharedOwner(DataClassJsonMixin):

owner_type: str
initial_shared_version: str
mutable: Optional[bool] = field(default=True)


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion pysui/sui/sui_types/bcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def from_object_read(cls, indata: ObjectRead) -> "SharedObjectReference":
:rtype: SharedObjectReference
"""
# return cls(Address.from_str(indata.object_id), indata.version, True)
return cls(Address.from_str(indata.object_id), int(indata.owner.initial_shared_version), True)
return cls(Address.from_str(indata.object_id), int(indata.owner.initial_shared_version), indata.owner.mutable)


class Uint256(canoser.int_type.IntType):
Expand Down

0 comments on commit a32f44a

Please sign in to comment.