ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.6k stars 180 forks source link

Fix ICE #868

Closed cburgdorf closed 1 year ago

cburgdorf commented 1 year ago

What was wrong?

This code currently crashes the compiler

struct Tx {
  pub data: Array<u8, 320>
}

contract Foo {
  pub fn bar(mut tx: Tx) {}
}

How was it fixed?

Deref mptrs in abi_type_minimum_size and abi_type_maximum_size