Skip to content

Commit 1597306

Browse files
committed
generate idempotency key with request url
1 parent 9ea6c01 commit 1597306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ic-solana/src/rpc_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl RpcClient {
133133
});
134134
}
135135

136-
let idempotency_key = hash_with_sha256(&payload.to_string());
136+
let idempotency_key = hash_with_sha256(&format!("{}{}", provider.network, payload));
137137
headers.push(HttpHeader {
138138
name: "X-Idempotency".to_string(),
139139
value: idempotency_key,

0 commit comments

Comments
 (0)