Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stdlibs/std)!: replace IsOriginCall with PrevRealm().IsUser() for EOA checks #3399

Merged
merged 15 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into feat/remove-is-or…
…igin-call
omarsy committed Jan 15, 2025
commit 5742e107a0d89557e86af23b07c91e2b0774e382
2 changes: 1 addition & 1 deletion gnovm/tests/files/std5.gno
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ func main() {

// Stacktrace:
// panic: frame not found
// callerAt<VPBlock(3,47)>(n<VPBlock(1,0)>)
// callerAt<VPBlock(3,52)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(2)
// std/native.gno:46
2 changes: 1 addition & 1 deletion gnovm/tests/files/std8.gno
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ func main() {

// Stacktrace:
// panic: frame not found
// callerAt<VPBlock(3,47)>(n<VPBlock(1,0)>)
// callerAt<VPBlock(3,52)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(4)
// std/native.gno:46
150 changes: 0 additions & 150 deletions gnovm/tests/files/zrealm_natbind0.gno
Original file line number Diff line number Diff line change
@@ -28,153 +28,3 @@ func main() {

// Realm:
// switchrealm["gno.land/r/test"]
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:2]={
// "Blank": {},
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:2",
// "IsEscaped": true,
// "ModTime": "3",
// "RefCount": "2"
// },
// "Parent": null,
// "Source": {
// "@type": "/gno.RefNode",
// "BlockNode": null,
// "Location": {
// "Column": "0",
// "File": "",
// "Line": "0",
// "PkgPath": "gno.land/r/test"
// }
// },
// "Values": [
// {
// "T": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": [
// {
// "Embedded": false,
// "Name": "",
// "Tag": "",
// "Type": {
// "@type": "/gno.PrimitiveType",
// "value": "16"
// }
// }
// ]
// },
// "V": {
// "@type": "/gno.FuncValue",
// "Closure": {
// "@type": "/gno.RefValue",
// "Escaped": true,
// "ObjectID": "a7f5397443359ea76c50be82c77f1f893a060925:8"
// },
// "FileName": "native.gno",
// "IsMethod": false,
// "Name": "GetChainID",
// "NativeName": "GetChainID",
// "NativePkg": "std",
// "PkgPath": "std",
// "Source": {
// "@type": "/gno.RefNode",
// "BlockNode": null,
// "Location": {
// "Column": "1",
// "File": "native.gno",
// "Line": "14",
// "PkgPath": "std"
// }
// },
// "Type": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": [
// {
// "Embedded": false,
// "Name": "",
// "Tag": "",
// "Type": {
// "@type": "/gno.PrimitiveType",
// "value": "16"
// }
// }
// ]
// }
// }
// },
// {
// "T": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": []
// },
// "V": {
// "@type": "/gno.FuncValue",
// "Closure": {
// "@type": "/gno.RefValue",
// "Escaped": true,
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3"
// },
// "FileName": "files/zrealm_natbind0.gno",
// "IsMethod": false,
// "Name": "init.1",
// "NativeName": "",
// "NativePkg": "",
// "PkgPath": "gno.land/r/test",
// "Source": {
// "@type": "/gno.RefNode",
// "BlockNode": null,
// "Location": {
// "Column": "1",
// "File": "files/zrealm_natbind0.gno",
// "Line": "10",
// "PkgPath": "gno.land/r/test"
// }
// },
// "Type": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": []
// }
// }
// },
// {
// "T": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": []
// },
// "V": {
// "@type": "/gno.FuncValue",
// "Closure": {
// "@type": "/gno.RefValue",
// "Escaped": true,
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3"
// },
// "FileName": "files/zrealm_natbind0.gno",
// "IsMethod": false,
// "Name": "main",
// "NativeName": "",
// "NativePkg": "",
// "PkgPath": "gno.land/r/test",
// "Source": {
// "@type": "/gno.RefNode",
// "BlockNode": null,
// "Location": {
// "Column": "1",
// "File": "files/zrealm_natbind0.gno",
// "Line": "14",
// "PkgPath": "gno.land/r/test"
// }
// },
// "Type": {
// "@type": "/gno.FuncType",
// "Params": [],
// "Results": []
// }
// }
// }
// ]
// }
You are viewing a condensed version of this merge commit. You can view the full changes here.