Error: cannot redeclare structure(Import contract has conflicts the struct name)

Is there any way we can change import name using as(javascript or sql as keyword) or anything.
For example i am using import ZeedzINO from 0x2dda9145001182e0 but i am facing an error: cannot redeclare structure because i already have ZeedzINO name struct in my contract. Is there any alternative in Cadence for this?

There is currently no support for aliasing in Cadence. There is a feature request for it here: https://github.com/onflow/cadence/issues/1171. Please feel free to upvote it!

1 Like