Skip to content

What is posRootChainManager.processReceivedMessage equivalent in v3? #312

Answered by ujjwalgupta94
miguelmota asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to generate the proof, just ensure that you have latest version of maticjs 3.2.0 . Here is code -

const matic = new FxPortalClient();


    await matic.init({
        log: true,
        network: 'mainnet',
        version: 'v1',
        parent: {
            provider: new HDWalletProvider(privateKey, rootRPC),
            defaultConfig: {
                from
            }
        },
        child: {
            provider: new HDWalletProvider(privateKey, maticRPC),
            defaultConfig: {
                from
            }
        },
        erc20: {
            rootTunnel: '0x7A08f1409E5D3e9Bc49063aA4009fB4BBC8777C3',
        }
    });

const rootTokenErc20 = matic.erc20(…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@miguelmota
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@miguelmota
Comment options

Answer selected by ujjwalgupta94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #311 on January 20, 2022 05:21.