Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,12 +718,12 @@ func PilotPolicyGet(h C.uint64_t, networkID C.uint16_t) *C.char {
}

//export PilotPolicySet
func PilotPolicySet(h C.uint64_t, networkID C.uint16_t, policyJSON *C.char) *C.char {
func PilotPolicySet(h C.uint64_t, networkID C.uint16_t, policyJSON *C.char, adminToken *C.char) *C.char {
d, err := driverFromHandle(h)
if err != nil {
return errJSON(err)
}
r, err := d.PolicySet(uint16(networkID), []byte(C.GoString(policyJSON)))
r, err := d.PolicySet(uint16(networkID), []byte(C.GoString(policyJSON)), C.GoString(adminToken))
if err != nil {
return errJSON(err)
}
Expand Down
11 changes: 6 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ go 1.25.10

require (
github.com/TeoSlayer/pilotprotocol v1.10.5
github.com/pilot-protocol/common v0.4.3
github.com/pilot-protocol/runtime v0.1.0
github.com/pilot-protocol/common v0.4.8
github.com/pilot-protocol/runtime v0.3.1
)

require (
github.com/coder/websocket v1.8.14 // indirect
github.com/expr-lang/expr v1.17.8 // indirect
github.com/pilot-protocol/handshake v0.1.0 // indirect
github.com/pilot-protocol/policy v0.1.0 // indirect
github.com/pilot-protocol/trustedagents v0.1.0 // indirect
github.com/pilot-protocol/handshake v0.2.1 // indirect
github.com/pilot-protocol/policy v0.2.2 // indirect
github.com/pilot-protocol/trustedagents v0.2.3 // indirect
golang.org/x/sys v0.45.0 // indirect
)

replace github.com/TeoSlayer/pilotprotocol => ../web4
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9
github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=
github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM=
github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
Loading