Skip to content

Commit 0b65e4e

Browse files
Merge pull request #75 from OpenFuturePlatform/key-master-fix
SA-46 Webhook processing
2 parents 0835a44 + c853eb9 commit 0b65e4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/open-api-ci-cd.yml

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ jobs:
213213
-e "STATE_API_URL=${{ secrets.STATE_API_URL_PROD }}" \
214214
-e "OPEN_KEY_URL=${{ secrets.OPEN_KEY_URL_PROD }}" \
215215
-e "PUBLIC_IP_SUBNET=${{ secrets.PUBLIC_IP_SUBNET }}" \
216+
-e "OPEN_STATE_IP_ADDRESS=${{ secrets.OPEN_STATE_IP_ADDRESS_PROD }}" \
216217
${{ env.DEPLOY_IMAGE_NAME }}:${{ env.DEPLOY_IMAGE_TAG }}
217218
"
218219

src/main/kotlin/io/openfuture/api/service/DefaultApplicationWalletService.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class DefaultApplicationWalletService(
2020
private val keyApi: KeyApi,
2121
private val stateApi: StateApi,
2222
private val applicationService: ApplicationService
23-
): ApplicationWalletService {
23+
) : ApplicationWalletService {
2424

2525
override fun generateWallet(request: GenerateWalletRequest, user: User): KeyWalletDto {
2626
// Generate address on open key
27-
val keyWalletDto = keyApi.generateKey(CreateKeyRequest(request.applicationId, user.id.toString(), request.blockchainType))
27+
val keyWalletDto = keyApi.generateKey(CreateKeyRequest(request.applicationId, user.id.toString(), request.blockchainType))
2828

2929
// Save webhook on open state
3030
request.webHook.let { stateApi.createWallet(keyWalletDto.address, it, Blockchain.Ethereum) }

0 commit comments

Comments
 (0)