Skip to content

Commit 9dd503d

Browse files
chore: remove unnecessary bind
1 parent 07bf2e6 commit 9dd503d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/scripts/Provider/EthProvider.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,13 @@ export const EthProvider = (host: string, network?: INetwork) => {
159159
const send = async (args: any[]) => {
160160
const { ethereumTransaction } = getController().wallet;
161161

162-
ethereumTransaction.web3Provider.send.bind(
163-
ethereumTransaction.web3Provider
164-
);
165-
166162
return ethereumTransaction.web3Provider.send(args[0], args);
167163
};
168164

169165
const unrestrictedRPCMethods = async (method: string, params: any[]) => {
170166
if (!unrestrictedMethods.find((el) => el === method)) return false;
171167
const { ethereumTransaction } = getController().wallet;
172168

173-
ethereumTransaction.web3Provider.send.bind(
174-
ethereumTransaction.web3Provider
175-
);
176-
177169
try {
178170
const resp = await ethereumTransaction.web3Provider.send(method, params);
179171

0 commit comments

Comments
 (0)