@alephium/web3 0.2.0-rc.5 → 0.2.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,12 @@
1
- Contract Add(subContractId: ByteVec, mut result : U256) {
1
+ Contract Add(sub: Sub, mut result : U256) {
2
2
  event Add(x: U256, y: U256)
3
3
 
4
- @using(permissionCheck = false)
5
4
  pub fn add(array: [U256; 2]) -> ([U256; 2]) {
6
5
  return addPrivate(array)
7
6
  }
8
7
 
9
8
  fn addPrivate(array: [U256; 2]) -> ([U256; 2]) {
10
9
  emit Add(array[0], array[1])
11
- let sub = Sub(subContractId)
12
10
  result = result + array[0] + array[1]
13
11
  return [result, sub.sub(array)]
14
12
  }