Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove usage of deprecated data field in Neutron SDK ICTX helper for SDK 0.47 chains & update SDK 0.45 helper to backw compat NTRN-223 #43

Merged
merged 3 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ incremental = false
overflow-checks = true

[workspace.dependencies]
neutron-sdk = { git = "https://github.com/neutron-org/neutron-sdk", branch = "feat/v047-icq" }
neutron-sdk = { git = "https://github.com/neutron-org/neutron-sdk", branch = "feat/deprecated-data-field-ictx" }
prost = "0.12.1"
prost-types = "0.12.1"
cosmos-sdk-proto = { version = "0.20.0", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ fn sudo_response(
let item_type = item.msg_type.as_str();
item_types.push(item_type.to_string());
match item_type {
"/cosmos.staking.v1beta1.MsgUndelegate" => {
"/cosmos.staking.v1beta1.MsgUndelegateResponse" => {
let out: MsgUndelegateResponse = decode_message_response(&item.data)?;

let completion_time = out.completion_time.or_else(|| {
Expand All @@ -639,7 +639,7 @@ fn sudo_response(
deps.api
.debug(format!("Undelegation completion time: {:?}", completion_time).as_str());
}
"/cosmos.staking.v1beta1.MsgDelegate" => {
"/cosmos.staking.v1beta1.MsgDelegateResponse" => {
let _out: MsgDelegateResponse = decode_message_response(&item.data)?;
}
_ => {
Expand Down
Loading