Skip to content

Commit

Permalink
Problem: not supporting ue 5.3 (fix #341)
Browse files Browse the repository at this point in the history
fix chainid
  • Loading branch information
leejw51crypto committed Dec 5, 2023
1 parent 3972975 commit dd87616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ void UDefiWalletCoreComponent::Setup() {
*NewDefiWalletCore->GetActorNameOrLabel());
_DefiWalletCore = NewDefiWalletCore;
return;
}
}
_DefiWalletCore = DefiWalletCore;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ APlayCppSdkActor *UWalletConnectTriggerComponent::Setup() {
std::string userwalletnamespace =
"{\"eip155\":{\"methods\":[\"eth_sendTransaction\",\"eth_"
"signTransaction\",\"eth_sign\",\"personal_sign\",\"eth_"
"signTypedData\"],\"chains\":[\"eip155:5\"],\"events\":["
"signTypedData\"],\"chains\":[\"eip155:338\"],\"events\":["
"\"chainChanged\",\"accountsChanged\"]}}";
std::string userclientmeta=
"{\"description\":\"Defi WalletConnect v2 "
Expand Down
7 changes: 4 additions & 3 deletions Metaverse/Source/Metaverse/Private/NPC/SendEthTransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ void ASendEthTransaction::OnSendEthTransactionBeginOverlap(

UWalletConnectTriggerComponent *WalletConnectTriggerComponent =
GetWalletConnectTriggerComponent();

WalletConnectTriggerComponent->OnWalletconnectSendEip155TransactionDelegate
.BindDynamic(
this,
&ASendEthTransaction::OnWalletconnectSendEip155TransactionFinished);

FWalletConnectTxEip155 tx;
tx.to = FString("0xA914161b1b8d9dbC9c5310Fc7EBee5A5B18044b7");
tx.value = FString("1000000000000000000");
tx.from = FString(std::getenv("MY_FROM_ADDRESS"));
tx.to = FString(std::getenv("MY_TO_ADDRESS"));
tx.value = FString("10000"); // wei
WalletConnectTriggerComponent->SendEip155Transaction(tx);

WalletConnectTriggerComponent->OnShowQR.BindDynamic(this, &Super::ShowQR);
Expand Down

0 comments on commit dd87616

Please sign in to comment.