-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Scene entity metadata owner can be empty (#116)
* fix: Open for Business avoid increasing steps when already completed * fix: Scene Owner can be empty and it should not * fix: Event Parser includes the auth chain for catalyst deployment events * fix: Take the owner address from the auth chain on LAND Architect handler * chore: Bump schemas * fix: Take the owner address from the auth chain on Open for Business handler * feat: Validate if the owner address from the auth chain is valid * fix: Other tests mocking the same event without the authchain
- Loading branch information
1 parent
e6dc6d9
commit 6fac521
Showing
13 changed files
with
297 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { AuthChain, EthAddress } from '@dcl/schemas' | ||
import { Authenticator } from '@dcl/crypto' | ||
|
||
export function getOwnerAddressFromAuthChain(authChain: AuthChain): string { | ||
return Authenticator.ownerAddress(authChain) | ||
} | ||
|
||
export function isValidOwnerAddress(ownerAddress: EthAddress): boolean { | ||
return !!ownerAddress && EthAddress.validate(ownerAddress) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.