Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

When doing a Deposit, approval is done for different address than who handles transferFrom. #10

@ZackMcClary34

Description

@ZackMcClary34

I am using the sample node project (https://github.com/maticnetwork/pos-plasma-tutorial) to move some ZkGo from etherium Goerli network to polygon Mumbai network. The "Deposit" feature calls approve to add an allowance for address "0xdD6596F2029e6233DEFfaCa316e6A95217d4Dc34" . But then the "depositFor" that is called uses the "transferFrom" and checks the allowance of address "37c3bfc05d5ebf9ebb3ff80ce0bd0133bf221bc8" . Shouldn't those be the same addresses? Here are some sample transactions moving 0 ZkGo. I was only able to get a transaction of "1" to work by manually approving an allowance for that second address. Please provide an explanation or direct me to help. Thanks so much.

https://goerli.etherscan.io/tx/0xca75510d7a41acfd3933aee7ddf90732ca5aa74a5433e8611ce4afe40022cbf3

https://goerli.etherscan.io/tx/0x60b8fee0eac5f8e93d24200945bbe1bd660306a017297f4f9361bbd9df8a39d1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions