Skip to content

Commit

Permalink
Release 0.12.0 (#17)
Browse files Browse the repository at this point in the history
# `0.12.0`

- Add `get_version` method to return the version of the contract.
- `set` method to return `SetReturnType` object. It contains
`block_height` which is the block height when the data was set in
decimal string format.

Co-authored-by: Evgeny Kuzyakov <ek@remote>
  • Loading branch information
evgenykuzyakov and Evgeny Kuzyakov authored Jan 29, 2024
1 parent 6b5e544 commit b4a023d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# `0.12.0`

- Add `get_version` method to return the version of the contract.
- `set` method to return `SetReturnType` object. It contains `block_height` which is the block height when the data was set in decimal string format.

# `0.11.0`

- Add option to refund unused deposit for `set` method. [#11](https://github.com/NearSocial/social-db/pull/11)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.11.0"
version = "0.12.0"
authors = ["Eugene The Dream"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion contract/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract"
version = "0.11.0"
version = "0.12.0"
authors = ["Eugene The Dream"]
edition = "2018"

Expand Down
4 changes: 4 additions & 0 deletions contract/src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ impl Contract {
.insert(&account.node_id, &current_account.into());
}
}

pub fn get_version(&self) -> String {
env!("CARGO_PKG_VERSION").to_string()
}
}

fn populate_node(node: &mut Node, partial_node: PartialNode) {
Expand Down
Binary file modified res/social_db_release.wasm
Binary file not shown.

0 comments on commit b4a023d

Please sign in to comment.