maticnetwork / contracts

Smart contracts comprising the business logic of the Matic Network
https://matic.network
GNU General Public License v3.0
1.14k stars 506 forks source link

_fxERC20Token in FxERC20RootTunnel constructor #401

Open 0xvgd opened 2 years ago

0xvgd commented 2 years ago

Anybody please help what _fxERC20Token is in constructor.

https://docs.polygon.technology/docs/develop/l1-l2-communication/fx-portal#fxerc20roottunnel https://goerli.etherscan.io/address/0x3658ccFDE5e9629b0805EB06AaCFc42416850961#code#F1#L25

k06a commented 2 years ago

@voyager-gold you can discover constructor arguments concatenated to the end of the deployment transaction calldata https://goerli.etherscan.io/tx/0x73b0875358e6ea974eb9ccbaf4062e20adc9b5c605872c0eebd32d08aa9dc5f6:

***
0000000000000000000000002890ba17efe978480615e330ecb65333b880928e
0000000000000000000000003d1d3e34f7fb6d26245e6640e1c50710efff15ba
000000000000000000000000dde69724aefbdb084413719fe745ab66e3b055c7
picardcapt1212 commented 1 year ago

I have the same question and confused. In the polygon documents they say Deploy your own ERC20 token on the root chain which means deploy my contract to goerli. But if i see the FxERC20RootTunnel constructor _fxERC20Token param is 0xDDE69724AeFBdb084413719fE745aB66e3b055C7 , which has nothing on goerli. But on mumbai testnet 0xDDE69724AeFBdb084413719fE745aB66e3b055C7 it has a contract deployed.

image