-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add domain extension to get escrow account address (#121)
- Loading branch information
1 parent
0ffe566
commit b1ce8ab
Showing
3 changed files
with
27 additions
and
7 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
22 changes: 16 additions & 6 deletions
22
service/src/test/kotlin/io/provenance/explorer/domain/ExtensionsTest.kt
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
//package io.provenance.explorer.domain | ||
// | ||
//class ExtensionsTest { | ||
// | ||
// | ||
//} | ||
package io.provenance.explorer.domain | ||
|
||
import io.provenance.explorer.grpc.extensions.getEscrowAccountAddress | ||
import org.junit.jupiter.api.Assertions.assertEquals | ||
import org.junit.jupiter.api.Tag | ||
import org.junit.jupiter.api.Test | ||
|
||
class ExtensionsTest { | ||
|
||
@Test | ||
@Tag("junit-jupiter") | ||
fun `should return escrow account address with given portId channelId and prefix`() { | ||
val result = getEscrowAccountAddress("transfer", "channel", "cosmos") | ||
assertEquals("cosmos1dm7fargcm8km25nxe6xldj0y0j2dawg8h5s03l", result) | ||
} | ||
} |