Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sdk/reya_rpc/actions/bridge_in.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import pathlib
from dataclasses import dataclass

from web3 import Web3
Expand All @@ -17,10 +18,10 @@ class BridgeInParams:


# Load contract ABI files
with open("sdk/reya_rpc/abis/SocketVaultWithPayload.json", encoding="utf-8") as f:
with open(pathlib.Path(__file__).parent.parent/"abis/SocketVaultWithPayload.json", encoding="utf-8") as f:
vault_abi = json.load(f)

with open("sdk/reya_rpc/abis/Erc20.json", encoding="utf-8") as f:
with open(pathlib.Path(__file__).parent.parent/"abis/Erc20.json", encoding="utf-8") as f:
erc20_abi = json.load(f)


Expand Down
5 changes: 3 additions & 2 deletions sdk/reya_rpc/actions/bridge_out.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import pathlib
from dataclasses import dataclass

from sdk.reya_rpc.exceptions import NetworkConfigurationError
Expand All @@ -14,10 +15,10 @@ class BridgeOutParams:


# Load contract ABI files
with open("sdk/reya_rpc/abis/SocketControllerWithPayload.json", encoding="utf-8") as f:
with open(pathlib.Path(__file__).parent.parent/"abis/SocketControllerWithPayload.json", encoding="utf-8") as f:
controller_abi = json.load(f)

with open("sdk/reya_rpc/abis/Erc20.json", encoding="utf-8") as f:
with open(pathlib.Path(__file__).parent.parent/"abis/Erc20.json", encoding="utf-8") as f:
erc20_abi = json.load(f)


Expand Down