Skip to content

Commit

Permalink
URITokenMint now reports owner role
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrguric committed Nov 9, 2023
1 parent 9a4921f commit b5e44f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NFTTxMutationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private function handleURITokenMint(): void
{
if($this->account == $this->tx->Account) {
$this->ref_direction = self::DIRECTION_IN;
$this->ref_roles = [self::ROLE_MINTER, self::ROLE_ISSUER];
$this->ref_roles = [self::ROLE_MINTER, self::ROLE_ISSUER, self::ROLE_OWNER];
$this->ref_nft = $this->extractAffectedURITokenID();
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Tx21Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testUriTokenMinter()
$this->assertEquals('CA781DB43A1AFEF26DFB38C6ECF1F76CAE00EE70979C6F8270AC8FA9AC3B05B4',$parsedTransaction['nft']);
$this->assertEquals('CA781DB43A1AFEF26DFB38C6ECF1F76CAE00EE70979C6F8270AC8FA9AC3B05B4',$parsedTransaction['ref']['nft']);
$this->assertEquals('IN',$parsedTransaction['ref']['direction']);
$this->assertEquals(['ISSUER','MINTER'],$parsedTransaction['ref']['roles']);
$this->assertEquals(['ISSUER','MINTER','OWNER'],$parsedTransaction['ref']['roles']);
}

public function testUriTokenOther()
Expand Down

0 comments on commit b5e44f5

Please sign in to comment.