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

restore

use main branch

use main

reformat
  • Loading branch information
leejw51crypto committed Dec 12, 2023
1 parent 3972975 commit f81b4ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
repository: cronos-labs/play-unreal-plugin
path: simple/Plugins/play-unreal-plugin
ref: main

- name: Build play-unreal-plugin repo
run: |
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
with:
repository: cronos-labs/play-unreal-plugin
path: Metaverse/Plugins/play-unreal-plugin
ref: main

- name: Build play-unreal-plugin repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ void UDefiWalletCoreComponent::Setup() {
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
5 changes: 3 additions & 2 deletions Metaverse/Source/Metaverse/Private/NPC/SendEthTransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void ASendEthTransaction::OnSendEthTransactionBeginOverlap(
&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 f81b4ae

Please sign in to comment.