Skip to content

Commit

Permalink
Remove send address check (FuelLabs#2510)
Browse files Browse the repository at this point in the history
* Remove send address check

Given that send() can be called by any address, we shouldn't check whether it's being called by the contract creator.

* Added requested changes

Co-authored-by: Mohammad Fawaz <[email protected]>
Co-authored-by: Alex Hansen <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2022
1 parent 2812003 commit 03281e2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/subcurrency/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ impl Token for Contract {
let sender: Result<Identity, AuthError> = msg_sender();
let sender: Address = match sender.unwrap() {
Identity::Address(addr) => {
assert(addr == ~Address::from(MINTER));
addr
},
_ => {
Expand Down

0 comments on commit 03281e2

Please sign in to comment.