Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 5f95b70

Browse files
committed
- add keccak256 back, along with a test
- add tests for transitive dependencies of a higher level
1 parent 6fdbc71 commit 5f95b70

19 files changed

+323
-157
lines changed

cabal.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ source-repository-package
101101
source-repository-package
102102
type: git
103103
location: https://github.com/kadena-io/pact-5.git
104-
tag: 78ca269f479c3d7aac6c6de6cf82f19f8f081599
105-
--sha256: 1swp7gkjvsg0hiciczdm3c8j4a5s86d69mjl0wkdynckclgim6xm
104+
tag: 037788bb25205540fb04e3487b50a26ce254646d
105+
--sha256: 0yi9sdk2k4b7yz5if9hkd2zhswwsy5z5dnira6vfv4r3y9mnv60q
106106

107107
source-repository-package
108108
type: git

cabal.project.freeze

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ constraints: any.Cabal ==3.12.1.0,
151151
any.growable-vector ==0.1,
152152
any.haddock-library ==1.11.0,
153153
any.half ==0.3.2,
154-
any.happy ==2.1.4,
155-
any.happy-lib ==2.1.4,
154+
any.happy ==2.1.5,
155+
any.happy-lib ==2.1.5,
156156
any.hashable ==1.5.0.0,
157157
any.hashes ==0.3.0.1,
158158
any.haskeline ==0.8.2.1,
@@ -229,7 +229,7 @@ constraints: any.Cabal ==3.12.1.0,
229229
any.pact-json ==0.1.0.0,
230230
any.pact-time ==0.3.0.1,
231231
pact-time -with-time,
232-
any.pact-tng ==5.0,
232+
any.pact-tng ==5.1,
233233
pact-tng +with-crypto +with-funcall-tracing +with-native-tracing,
234234
any.pandoc ==3.6.2,
235235
any.pandoc-types ==1.23.1,
@@ -401,4 +401,4 @@ constraints: any.Cabal ==3.12.1.0,
401401
any.zigzag ==0.1.0.0,
402402
any.zip-archive ==0.4.3.2,
403403
any.zlib ==0.7.1.0
404-
index-state: hackage.haskell.org 2025-01-24T21:23:54Z
404+
index-state: hackage.haskell.org 2025-02-24T21:36:29Z

pact/pact5/coin-contract/coin.repl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
(env-gaslog)
2828
(expect
2929
"Gas cost of loading coin contract"
30-
21122
30+
21572
3131
(env-gas))
3232

3333
(create-table coin.coin-table)
@@ -51,7 +51,7 @@
5151
(env-gaslog)
5252
(expect
5353
"Gas cost of using the coin contract"
54-
24 (env-gas))
54+
1 (env-gas))
5555

5656
;; account balance for emily does not exist, because account does not exist yet
5757
(expect-failure

pact/pact5/namespaces/ns.repl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
(namespace 'user)
3030
(env-keys [])
3131

32-
(module mod G
32+
(module modl G
3333
(defcap G () (enforce false "disabled"))
3434
(defun foo () 1))
3535

3636
(namespace 'free)
3737

38-
(module mod G
38+
(module modl G
3939
(defcap G () (enforce false "disabled"))
4040
(defun foo () 2))
4141

@@ -48,15 +48,15 @@
4848

4949
(namespace 'kadena)
5050

51-
(module mod G
51+
(module modl G
5252
(defcap G () (enforce false "disabled"))
5353
(defun foo () 3))
5454

5555
(commit-tx)
5656

57-
(expect "user.mod works" 1 (user.mod.foo))
58-
(expect "free.mod works" 2 (free.mod.foo))
59-
(expect "kadena.mod works" 3 (kadena.mod.foo))
57+
(expect "user.modl works" 1 (user.modl.foo))
58+
(expect "free.modl works" 2 (free.modl.foo))
59+
(expect "kadena.modl works" 3 (kadena.modl.foo))
6060

6161
(begin-tx)
6262
(env-keys ["operate"])
@@ -79,13 +79,13 @@
7979

8080
(namespace 'kadena)
8181

82-
(module mod2 G
82+
(module modl2 G
8383
(defcap G () (enforce false "disabled"))
8484
(defun foo () 4))
8585
(commit-tx)
8686
(begin-tx)
8787

88-
(expect "kadena.mod2 works" 4 (kadena.mod2.foo))
88+
(expect "kadena.modl2 works" 4 (kadena.modl2.foo))
8989

9090
(use ns)
9191
(env-keys ["operate"])
@@ -171,12 +171,12 @@
171171
)
172172

173173
(namespace "n_c1a583206e24450af26de41110042b019695db8c")
174-
(module modK G
174+
(module modlK G
175175
(defcap G () true)
176176
(defun f () 1))
177177

178178
(namespace "n_64bfdef1c668b167c87f7cf329454c572e284664")
179-
(module modW G
179+
(module modlW G
180180
(defcap G () true)
181181
(defun f () 2))
182182

@@ -186,12 +186,12 @@
186186
(expect
187187
"k: principal namespaces work"
188188
1
189-
(n_c1a583206e24450af26de41110042b019695db8c.modK.f))
189+
(n_c1a583206e24450af26de41110042b019695db8c.modlK.f))
190190

191191
(expect
192192
"w: principal namespaces work"
193193
2
194-
(n_64bfdef1c668b167c87f7cf329454c572e284664.modW.f))
194+
(n_64bfdef1c668b167c87f7cf329454c572e284664.modlW.f))
195195

196196
(commit-tx)
197197
(begin-tx)

pact/pact5/namespaces/v1/ns.repl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
(namespace 'user)
1414
(env-keys [])
1515

16-
(module mod G
16+
(module modl G
1717
(defcap G () (enforce false "disabled"))
1818
(defun foo () 1))
1919

2020
(namespace 'free)
2121

22-
(module mod G
22+
(module modl G
2323
(defcap G () (enforce false "disabled"))
2424
(defun foo () 2))
2525

@@ -32,15 +32,15 @@
3232

3333
(namespace 'kadena)
3434

35-
(module mod G
35+
(module modl G
3636
(defcap G () (enforce false "disabled"))
3737
(defun foo () 3))
3838

3939
(commit-tx)
4040

41-
(expect "user.mod works" 1 (user.mod.foo))
42-
(expect "free.mod works" 2 (free.mod.foo))
43-
(expect "kadena.mod works" 3 (kadena.mod.foo))
41+
(expect "user.modl works" 1 (user.modl.foo))
42+
(expect "free.modl works" 2 (free.modl.foo))
43+
(expect "kadena.modl works" 3 (kadena.modl.foo))
4444

4545
(begin-tx)
4646
(env-keys ["operate"])
@@ -63,12 +63,12 @@
6363

6464
(namespace 'kadena)
6565

66-
(module mod2 G
66+
(module modl2 G
6767
(defcap G () (enforce false "disabled"))
6868
(defun foo () 4))
6969
(commit-tx)
7070

71-
(expect "kadena.mod2 works" 4 (kadena.mod2.foo))
71+
(expect "kadena.modl2 works" 4 (kadena.modl2.foo))
7272

7373
(use ns)
7474
(env-keys ["operate"])

0 commit comments

Comments
 (0)