Address toBigEndianBytes?

Not sure if it’s just the playground or flow but I get an error saying “value of type Address has no member toBigEndianBytes. unknown member”

I noticed that the example in the docs is using toString() instead of toBigEndianBytes() as well.

pub fun main() {

    let someAddress: Address = 0x436164656E636521

    someAddress.toBigEndianBytes()

}

Hi Matthew!

Thank you for reporting this bug in the documentation!

The byte-conversion function for addresses is called toBytes().

I fixed the name and the example in fix documentation for byte conversion function of addresses · onflow/cadence@c266ddc · GitHub.