1

error message

Hey! I am making a bridge from bsc -> arbitrum, and I have a problem while signing message.

The code for making trx is:

case 'bsc':
        match user_info['currency']:
            case 'eth':
                tx = unicorn.functions.transfer( eth_orbiter , 
                    value,
                    ).build_transaction({
                     'chainId': chain_id,
                     'gas': gas_limit,
                     'maxFeePerGas': gas,
                     'maxPriorityFeePerGas': web3.to_wei('1', 'gwei'),
                     'nonce': nonce,
                     })

When I debug the code I can see that chainId is correct. What could be wrong? debug info

1 Answer 1

0

fixed by changing the code to:

tx = unicorn.functions.transfer( weth_orbiter , 
                    value,
                    ).build_transaction({
                     'chainId': chain_id,
                     'gas': gas_limit,
                     'gasPrice': gas,
                     'nonce': nonce,
                     })
1
  • for some reason contract transfer acts different with bsc and other networks for me xd
    – SlazZzor
    Apr 3 at 7:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.