Skip to content

Commit

Permalink
chore: changed test address
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Dec 9, 2024
1 parent a8e6f75 commit ebe312d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dapps/ModalEthers/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function App(): JSX.Element {

const amount = sanitizeHex(numberToHex(0.0001));
const transaction = {
to: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', // vitalik.eth
to: '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689', // test address
value: amount,
chainId,
data: '0x',
Expand Down
2 changes: 1 addition & 1 deletion dapps/ModalUProvider/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function App(): JSX.Element {

const transaction = {
from: address,
to: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', // vitalik.eth
to: '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689', // test address
value: amount,
chainId,
data: '0x',
Expand Down
2 changes: 1 addition & 1 deletion dapps/ModalViem/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function App(): JSX.Element {
const hash = await walletClient.sendTransaction({
chain: mainnet,
account: address,
to: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', // vitalik.eth
to: '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689', // test address
value: parseEther('0.001'),
data: '0x',
});
Expand Down
2 changes: 1 addition & 1 deletion dapps/W3MEthers/src/utils/misc.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const vitalikEthAddress = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045';
export const testAddress = '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689';
4 changes: 2 additions & 2 deletions dapps/W3MEthers/src/views/SendTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@reown/appkit-ethers-react-native';

import {RequestModal} from '../components/RequestModal';
import {vitalikEthAddress} from '../utils/misc';
import {testAddress} from '../utils/misc';

export function SendTransaction() {
const [requestModalVisible, setRequetsModalVisible] = useState(false);
Expand All @@ -31,7 +31,7 @@ export function SendTransaction() {
const ethersProvider = new BrowserProvider(walletProvider);
const signer = new JsonRpcSigner(ethersProvider, address!);
const tx = {
to: vitalikEthAddress,
to: testAddress,
value: parseEther('0.0001'),
data: '0x',
};
Expand Down
2 changes: 1 addition & 1 deletion dapps/W3MEthers5/src/utils/misc.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const vitalikEthAddress = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045';
export const testAddress = '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689';
4 changes: 2 additions & 2 deletions dapps/W3MEthers5/src/views/SendTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import {ethers} from 'ethers';

import {RequestModal} from '../components/RequestModal';
import {vitalikEthAddress} from '../utils/misc';
import {testAddress} from '../utils/misc';

export function SendTransaction() {
const [requestModalVisible, setRequetsModalVisible] = useState(false);
Expand All @@ -31,7 +31,7 @@ export function SendTransaction() {
const ethersProvider = new ethers.providers.Web3Provider(walletProvider);
const signer = ethersProvider.getSigner(address);
const tx = {
to: vitalikEthAddress,
to: testAddress,
value: ethers.utils.parseEther('0.0001'),
data: '0x',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function SendTransaction() {

const onPress = () => {
sendTransaction({
to: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', // vitalik.eth
to: '0x704457b418E9Fb723e1Bc0cB98106a6B8Cf87689', // test address
value: parseEther('0.001'),
data: '0x', // to make it work with some wallets
});
Expand Down

0 comments on commit ebe312d

Please sign in to comment.