Skip to content

Commit 07d1de5

Browse files
committed
update
1 parent 6ef86bc commit 07d1de5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/web3/lib/src/extension/web3dart.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,13 @@ extension Web3DartExt on Web3Client {
127127
}
128128

129129
Future<String> _sendTransactionAndWaitForReceipt(Transaction transaction, String privateKey) async {
130-
print('sendTransactionAndWaitForReceipt');
131-
132-
///
133130
var _credentials = await setCredentials(privateKey);
134131
var _networkId = await getNetworkId();
135132

133+
print('sendTransactionAndWaitForReceipt: chainID:$_networkId');
134+
136135
/// send:
137-
String txHash = await sendTransaction(_credentials, transaction);
136+
String txHash = await sendTransaction(_credentials, transaction, chainId: _networkId);
138137

139138
/// async watch tx done: not add await
140139
watchTxStatus(txHash);

0 commit comments

Comments
 (0)