Updated on 2026-08-14
This commit is contained in:
parent
ee4c5a872c
commit
1ce06627c8
7 changed files with 38 additions and 15 deletions
|
|
@ -69,8 +69,15 @@ class DefaultGaslessTransactionRepository(
|
|||
}
|
||||
}
|
||||
|
||||
override fun getTokenFeeReceiverAddress(): String {
|
||||
return TOKEN_RECEIVER_ADDRESS
|
||||
override suspend fun getTokenFeeReceiverAddress(): String {
|
||||
return withContext(coroutineDispatcherProvider.io) {
|
||||
val response = gaslessTxServiceApi.getFeeRecipient().getOrThrow()
|
||||
if (response.isSuccess) {
|
||||
response.result.address
|
||||
} else {
|
||||
error("Gasless service returned unsuccessful response")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun signGaslessTransaction(
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class MockedGaslessTransactionRepository(
|
|||
return networkBlockchain.getChainId() ?: error("ChainId not found for blockchain ${networkBlockchain.name}")
|
||||
}
|
||||
|
||||
override fun getTokenFeeReceiverAddress(): String {
|
||||
override suspend fun getTokenFeeReceiverAddress(): String {
|
||||
return TOKEN_RECEIVER_ADDRESS
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue