diff --git a/Content/BlueprintSampleContent/ImtblAuthenticatedWidget4_26.uasset b/Content/BlueprintSampleContent/ImtblAuthenticatedWidget4_26.uasset index 4c1cf60..9ee2db9 100644 Binary files a/Content/BlueprintSampleContent/ImtblAuthenticatedWidget4_26.uasset and b/Content/BlueprintSampleContent/ImtblAuthenticatedWidget4_26.uasset differ diff --git a/Source/Immutable/Private/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.cpp b/Source/Immutable/Private/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.cpp index 1a18f7e..3dcb3c0 100644 --- a/Source/Immutable/Private/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.cpp +++ b/Source/Immutable/Private/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.cpp @@ -21,7 +21,7 @@ void UImtblPassportImxRegisterOffchainAsyncAction::Activate() { FString Err = "RegisterOffchain failed due to missing world or world context object."; IMTBL_WARN("%s", *Err) - OnFailure.Broadcast(Err); + OnFailure.Broadcast(TEXT(""), Err); return; } @@ -44,11 +44,11 @@ void UImtblPassportImxRegisterOffchainAsyncAction::OnImxRegisterOffchainResponse { if (auto ResponseData = JsonObjectToUStruct(Result.Response.JsonObject)) { - OnSuccess.Broadcast(ResponseData->tx_hash); + OnSuccess.Broadcast(ResponseData->tx_hash, TEXT("")); return; } } - OnFailure.Broadcast(Result.Message); + OnFailure.Broadcast(TEXT(""), Result.Message); } diff --git a/Source/Immutable/Public/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.h b/Source/Immutable/Public/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.h index 31ab993..93f2804 100644 --- a/Source/Immutable/Public/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.h +++ b/Source/Immutable/Public/Immutable/Actions/ImtblPassportImxRegisterOffchainAsyncAction.h @@ -12,8 +12,7 @@ class IMMUTABLE_API UImtblPassportImxRegisterOffchainAsyncAction : public UImtbl { GENERATED_BODY() - DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnSuccessOutputPin, FString, TxHash); - DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnFailureOutputPin, FString, ErrorMessage); + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOutputPin, FString, TxHash, FString, ErrorMessage); public: @@ -28,8 +27,8 @@ class IMMUTABLE_API UImtblPassportImxRegisterOffchainAsyncAction : public UImtbl void OnImxRegisterOffchainResponse(struct FImmutablePassportResult Result); UPROPERTY(BlueprintAssignable) - FOnSuccessOutputPin OnSuccess; + FOutputPin OnSuccess; UPROPERTY(BlueprintAssignable) - FOnFailureOutputPin OnFailure; + FOutputPin OnFailure; };