Skip to content

Contract Explore page does not support Option<T> inputs #2171

Description

@mootz12

What version are you using?

main

What did you do?

Loaded a contract into the explorer that takes Option<Address> as an argument for a function.

The contract and function in question are here: https://github.com/blend-capital/blend-contracts-v2/blob/main/backstop/src/contract.rs#L107

Mainnet address: CAQQR5SWBXKIGZKPBZDH3KM5GQ5GUTPKB7JAFCINLZBC5WXPJKRG3IM7

The WASM spec shows it is Option, but it can be verified here: https://github.com/blend-capital/blend-contracts-v2/releases/tag/v2.0.0_backstop_cli22.0.1

What did you expect to see?

That I could input None as a value for the argument

What did you see instead?

I was required to supply an address for to_remove.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions