Skip to content

Commit

Permalink
feat: canister id in akash tx memo
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed May 19, 2024
1 parent 54b5467 commit 7dbc66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/src/akash/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub async fn create_tx(
) -> Result<Vec<u8>, String> {
let chain_id = Id::from_str(chain_id).map_err(|e| e.to_string())?;
let timeout_height = 0u16;
let memo = "created from canister";
let memo = format!("canister id: {}", ic_cdk::id().to_text());

// Create transaction body from the MsgSend, memo, and timeout height.
let tx_body = tx::Body::new(vec![msg], memo, timeout_height);
Expand Down

0 comments on commit 7dbc66a

Please sign in to comment.