Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Here `Upgradable` is defined as

```rust
pub trait Upgradable: Administratable {
fn upgrade(env: &Env, wasm_hash: BytesN<32>) {
fn upgrade(env: &Env, new_wasm_hash: BytesN<32>) {
Self::admin(env).require_auth();
env.deployer().update_current_contract_wasm(wasm_hash);
env.deployer().update_current_contract_wasm(new_wasm_hash);
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions admin_sep/src/upgradable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use soroban_sdk::contracttrait;
pub trait Upgradable: Administratable {
/// Upgrades the contract to a new hash.
/// Admin Only.
fn upgrade(env: &soroban_sdk::Env, wasm_hash: soroban_sdk::BytesN<32>) {
fn upgrade(env: &soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>) {
Self::require_admin(env);
env.deployer().update_current_contract_wasm(wasm_hash);
env.deployer().update_current_contract_wasm(new_wasm_hash);
}
}