Skip to content

Commit 17f1f59

Browse files
committed
fix: fix CI stuffs
1 parent d1d2d52 commit 17f1f59

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Diff for: examples/gno.land/r/leon/config/config.gno

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func AddConfig(name, lines string) {
4646
}
4747

4848
func EditConfig(id string, name, lines string) {
49-
if !IsAuthorized(std.PrevRealm().Addr()) {
49+
if !IsAuthorized(std.PreviousRealm().Address()) {
5050
panic(ErrUnauthorized)
5151
}
5252

Diff for: examples/gno.land/r/moul/present/present.gno

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func Delete(slug string) string {
128128
}
129129

130130
// XXX: consider this:
131-
// if entry.Obj.(*Presentation).Uploader != std.PrevRealm().Addr() {
131+
// if entry.Obj.(*Presentation).Uploader != std.PreviousRealm().Address() {
132132
// return "401: unauthorized - only the uploader can delete their presentations"
133133
// }
134134

Diff for: gno.land/pkg/sdk/vm/keeper.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -781,13 +781,13 @@ func (vm *VMKeeper) queryEvalInternal(ctx sdk.Context, pkgPath string, expr stri
781781
ChainDomain: chainDomain,
782782
Height: ctx.BlockHeight(),
783783
Timestamp: ctx.BlockTime().Unix(),
784-
// OrigCaller: caller,
785-
// OrigSend: send,
786-
// OrigSendSpent: nil,
787-
OrigPkgAddr: pkgAddr.Bech32(),
788-
Banker: NewSDKBanker(vm, ctx), // safe as long as ctx is a fork to be discarded.
789-
Params: NewSDKParams(vm, ctx),
790-
EventLogger: ctx.EventLogger(),
784+
// OriginCaller: caller,
785+
// OriginSend: send,
786+
// OriginSendSpent: nil,
787+
OriginPkgAddr: pkgAddr.Bech32(),
788+
Banker: NewSDKBanker(vm, ctx), // safe as long as ctx is a fork to be discarded.
789+
Params: NewSDKParams(vm, ctx),
790+
EventLogger: ctx.EventLogger(),
791791
}
792792
m := gno.NewMachineWithOptions(
793793
gno.MachineOptions{

0 commit comments

Comments
 (0)