Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
module 0x1::PairStore {
resource struct Pair { a: u64, b: u64 }
public fun create(a: u64, b: u64): Pair {
Pair { a, b }
}
public fun update(p: &mut Pair, a: u64, b: u64) {
p.a = a
p.b = b
}
}Coding works best on desktop or with an external keyboard.