diff --git a/emitter/src/contract.rs b/emitter/src/contract.rs index 015daf0a..60a09283 100644 --- a/emitter/src/contract.rs +++ b/emitter/src/contract.rs @@ -66,7 +66,6 @@ impl Emitter for EmitterContract { fn distribute(e: Env) -> i128 { storage::bump_instance(&e); let backstop_address = storage::get_backstop(&e); - backstop_address.require_auth(); let distribution_amount = emitter::execute_distribute(&e, &backstop_address); diff --git a/test-suites/tests/test_emitter.rs b/test-suites/tests/test_emitter.rs index fa536f91..14034cc6 100644 --- a/test-suites/tests/test_emitter.rs +++ b/test-suites/tests/test_emitter.rs @@ -1,7 +1,7 @@ #![cfg(test)] use soroban_sdk::{ - testutils::{Address as _, AuthorizedFunction, AuthorizedInvocation, Events}, + testutils::{Address as _, Events}, vec, Address, IntoVal, Symbol, }; use test_suites::{ @@ -41,20 +41,7 @@ fn test_emitter() { fixture.jump(6 * 24 * 60 * 60); let result = fixture.emitter.distribute(); backstop_blnd_balance += result; - assert_eq!( - fixture.env.auths()[0], - ( - fixture.backstop.address.clone(), - AuthorizedInvocation { - function: AuthorizedFunction::Contract(( - fixture.emitter.address.clone(), - Symbol::new(&fixture.env, "distribute"), - vec![&fixture.env,] - )), - sub_invocations: std::vec![] - } - ) - ); + assert_eq!(fixture.env.auths().len(), 0); assert_eq!(result, (6 * 24 * 60 * 60 + 61 * 60) * SCALAR_7); // 1 token per second are emitted assert_eq!( blnd_token.balance(&fixture.emitter.address),